提交 df450923 编写于 作者: S Simon Hausmann

Only get the expensive branch mapping from the p4 server when not

syncing with the help of an origin remote (which we instead then use
to get new branches from).
Signed-off-by: NSimon Hausmann <simon@lst.de>
上级 a3fdd579
......@@ -907,10 +907,6 @@ class P4Sync(Command):
return p [p.strip().rfind("/") + 1:]
def getBranchMapping(self):
## FIXME - what's a P4 projectName ?
self.projectName = self.guessProjectName()
for info in p4CmdList("branches"):
details = p4Cmd("branch -o %s" % info["branch"])
viewIdx = 0
......@@ -1141,7 +1137,11 @@ class P4Sync(Command):
self.getLabels();
if self.detectBranches:
self.getBranchMapping();
## FIXME - what's a P4 projectName ?
self.projectName = self.guessProjectName()
if not self.hasOrigin:
self.getBranchMapping();
if self.verbose:
print "p4-git branches: %s" % self.p4BranchesInGit
print "initial parents: %s" % self.initialParents
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册