Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Warn about conflicting p4 branch mappings and use the first one found.
author
Simon Hausmann
<shausman@trolltech.com>
Sun, 17 Jun 2007 13:10:24 +0000
(15:10 +0200)
committer
Simon Hausmann
<shausman@trolltech.com>
Sun, 17 Jun 2007 13:10:24 +0000
(15:10 +0200)
Signed-off-by: Simon Hausmann <simon@lst.de>
contrib/fast-import/git-p4
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(from parent 1:
6555b2c
)
diff --git
a/contrib/fast-import/git-p4
b/contrib/fast-import/git-p4
index 3b6d8a09d1fabcf877b5f9967eaadf50c0b8df2e..2040591383e93db3544b50a118f8151062591d3d 100755
(executable)
--- a/
contrib/fast-import/git-p4
+++ b/
contrib/fast-import/git-p4
@@
-957,6
+957,12
@@
class P4Sync(Command):
source = source[len(self.depotPaths[0]):-4]
destination = destination[len(self.depotPaths[0]):-4]
+ if destination in self.knownBranches:
+ if not self.silent:
+ print "p4 branch %s defines a mapping from %s to %s" % (info["branch"], source, destination)
+ print "but there exists another mapping from %s to %s already!" % (self.knownBranches[destination], destination)
+ continue
+
self.knownBranches[destination] = source
lostAndFoundBranches.discard(destination)