Removed unused variable, more cleanups
Signed-off-by: Simon Hausmann <shausman@trolltech.com>maint
							parent
							
								
									71b112d4a4
								
							
						
					
					
						commit
						9bda3a8556
					
				|  | @ -551,9 +551,7 @@ class P4Sync(Command): | ||||||
|  |  | ||||||
|         change = int(details["change"]) |         change = int(details["change"]) | ||||||
|  |  | ||||||
|         self.lastChange = change |         if self.labels.has_key(change): | ||||||
|  |  | ||||||
|         if change in self.labels: |  | ||||||
|             label = self.labels[change] |             label = self.labels[change] | ||||||
|             labelDetails = label[0] |             labelDetails = label[0] | ||||||
|             labelRevisions = label[1] |             labelRevisions = label[1] | ||||||
|  | @ -620,7 +618,10 @@ class P4Sync(Command): | ||||||
|                 if change > newestChange: |                 if change > newestChange: | ||||||
|                     newestChange = change |                     newestChange = change | ||||||
|  |  | ||||||
|             self.labels[int(newestChange)] = [output, revisions] |             self.labels[newestChange] = [output, revisions] | ||||||
|  |  | ||||||
|  |         if self.verbose: | ||||||
|  |             print "Label changes: %s" % self.labels.keys() | ||||||
|  |  | ||||||
|     def getBranchMapping(self): |     def getBranchMapping(self): | ||||||
|         self.projectName = self.depotPath[self.depotPath[:-1].rfind("/") + 1:] |         self.projectName = self.depotPath[self.depotPath[:-1].rfind("/") + 1:] | ||||||
|  | @ -748,7 +749,6 @@ class P4Sync(Command): | ||||||
|  |  | ||||||
|         self.revision = "" |         self.revision = "" | ||||||
|         self.users = {} |         self.users = {} | ||||||
|         self.lastChange = 0 |  | ||||||
|  |  | ||||||
|         if self.depotPath.find("@") != -1: |         if self.depotPath.find("@") != -1: | ||||||
|             atIdx = self.depotPath.index("@") |             atIdx = self.depotPath.index("@") | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Simon Hausmann
						Simon Hausmann