Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReece H. Dunn <msclrhd@gmail.com>2007-08-13 22:40:50 +0400
committerJunio C Hamano <gitster@pobox.com>2007-08-14 02:23:14 +0400
commit7da660f4372f4113184f782634c0fafb2cf46cef (patch)
treee161a3a020b0efb98224abef7a686d1b6b7651b5 /contrib
parent89d07f750a3f878c42b3de96ee93dc571b42b230 (diff)
git-p4: Fix the sorting of changelists when cloning a Perforce repository.
When performing a git-p4 clone operation on a Perforce repository, where the changelists change in order of magnitude (e.g. 100 to 1000), the set of changes to import from is not sorted properly. This is because the data in the list is strings not integers. The other place where this is done already converts the value to an integer, so it is not affected. Acked-by: Simon Hausmann <simon@lst.de>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/fast-import/git-p42
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/fast-import/git-p4 b/contrib/fast-import/git-p4
index 805d632a68..6d0106237a 100755
--- a/contrib/fast-import/git-p4
+++ b/contrib/fast-import/git-p4
@@ -1322,7 +1322,7 @@ class P4Sync(Command):
for line in output:
changeNum = line.split(" ")[1]
- changes.append(changeNum)
+ changes.append(int(changeNum))
changes.sort()