提交 1a2edf4e 编写于 作者: S Simon Hausmann

Warn about conflicting p4 branch mappings and use the first one found.

Signed-off-by: NSimon Hausmann <simon@lst.de>
上级 6555b2cc
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册