@matheusbsbs / matheus-bagliano / commits / 6509e19cd1
Fork 0

Hack to make the multi-branch import work again with self.depotPaths now that self.depotPath is gone

Hack to make the multi-branch import work again with self.depotPaths now that self.depotPath is gone Signed-off-by: Simon Hausmann <shausman@trolltech.com>

Simon Hausmann committed Jun 7, 2007 at 09:41 UTC 6509e19cd1f6b5620d339a2be35b8a160ab30794
1 file changed +4 -3
contrib/fast-import/git-p4
+4 -3
@@ -909,9 +909,10 @@ class P4Sync(Command):
909 continue
910 source = paths[0]
911 destination = paths[1]
912 - if source.startswith(self.depotPath) and destination.startswith(self.depotPath):
913 - source = source[len(self.depotPath):-4]
914 - destination = destination[len(self.depotPath):-4]
912 + ## HACK
913 + if source.startswith(self.depotPaths[0]) and destination.startswith(self.depotPaths[0]):
914 + source = source[len(self.depotPaths[0]):-4]
915 + destination = destination[len(self.depotPaths[0]):-4]
916 if destination not in self.knownBranches:
917 self.knownBranches[destination] = source
918 if source not in self.knownBranches: