Removed unused variable, more cleanups
Signed-off-by: Simon Hausmann <shausman@trolltech.com>
Simon Hausmann committed
May 19, 2007 at 12:05 UTC
9bda3a8556681c90309ec34e2ee5ae50306b61a6
1 file changed
+5
-5
contrib/fast-import/git-p4
+5
-5
@@ -551,9 +551,7 @@ class P4Sync(Command):
551
552
change = int(details["change"])
553
554
- self.lastChange = change
555
-
556
- if change in self.labels:
554
+ if self.labels.has_key(change):
555
label = self.labels[change]
556
labelDetails = label[0]
557
labelRevisions = label[1]
@@ -620,7 +618,10 @@ class P4Sync(Command):
618
if change > newestChange:
619
newestChange = change
620
623
- self.labels[int(newestChange)] = [output, revisions]
621
+ self.labels[newestChange] = [output, revisions]
622
+
623
+ if self.verbose:
624
+ print "Label changes: %s" % self.labels.keys()
625
626
def getBranchMapping(self):
627
self.projectName = self.depotPath[self.depotPath[:-1].rfind("/") + 1:]
@@ -748,7 +749,6 @@ class P4Sync(Command):
749
750
self.revision = ""
751
self.users = {}
751
- self.lastChange = 0
752
753
if self.depotPath.find("@") != -1:
754
atIdx = self.depotPath.index("@")