summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a4eba02)
raw | patch | inline | side by side (parent: a4eba02)
author | Han-Wen Nienhuys <hanwen@google.com> | |
Mon, 23 Jul 2007 22:56:37 +0000 (15:56 -0700) | ||
committer | Simon Hausmann <simon@lst.de> | |
Thu, 2 Aug 2007 07:40:28 +0000 (09:40 +0200) |
Python slices start at 0 by default.
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Simon Hausmann <simon@lst.de>
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Simon Hausmann <simon@lst.de>
contrib/fast-import/git-p4 | patch | blob | history |
index f00c691a7bf71b00ece3177130533988ddb063c2..41e86e76cb9e4718c87185fc0b25e630ad091939 100755 (executable)
elif ',' not in self.changeRange:
self.revision = self.changeRange
self.changeRange = ""
- p = p[0:atIdx]
+ p = p[:atIdx]
elif p.find("#") != -1:
hashIdx = p.index("#")
self.revision = p[hashIdx:]
- p = p[0:hashIdx]
+ p = p[:hashIdx]
elif self.previousDepotPaths == []:
self.revision = "#head"
changes.sort()
if len(self.maxChanges) > 0:
- changes = changes[0:min(int(self.maxChanges), len(changes))]
+ changes = changes[:min(int(self.maxChanges), len(changes))]
if len(changes) == 0:
if not self.silent: