Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge git://git.bogomips.org/git-svn
author
Junio C Hamano
<gitster@pobox.com>
Tue, 24 Feb 2009 03:14:13 +0000
(19:14 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 24 Feb 2009 03:14:13 +0000
(19:14 -0800)
* git://git.bogomips.org/git-svn:
git-svn: read the dcommit url from the config file on a per remote basis
git-svn: fix delete+add branch tracking with empty files
git-svn: Create leading directories in create-ignore
contrib/fast-import/git-p4
patch
|
blob
|
history
raw
(from parent 2:
0df8405
)
diff --git
a/contrib/fast-import/git-p4
b/contrib/fast-import/git-p4
index a85a7b2a583ee9270fc2d765ec8c8c6e9d6b5e32..3832f602253fbe793ddf81c61b61e5a2757ce89d 100755
(executable)
--- a/
contrib/fast-import/git-p4
+++ b/
contrib/fast-import/git-p4
@@
-442,13
+442,14
@@
def p4ChangesForPaths(depotPaths, changeRange):
output = p4_read_pipe_lines("changes " + ' '.join (["%s...%s" % (p, changeRange)
for p in depotPaths]))
- changes =
[]
+ changes =
{}
for line in output:
- changeNum = line.split(" ")[1]
- changes.append(int(changeNum))
+ changeNum = int(line.split(" ")[1])
+ changes[changeNum] = True
- changes.sort()
- return changes
+ changelist = changes.keys()
+ changelist.sort()
+ return changelist
class Command:
def __init__(self):