|
|
@ -907,10 +907,6 @@ class P4Sync(Command): |
|
|
|
return p [p.strip().rfind("/") + 1:] |
|
|
|
return p [p.strip().rfind("/") + 1:] |
|
|
|
|
|
|
|
|
|
|
|
def getBranchMapping(self): |
|
|
|
def getBranchMapping(self): |
|
|
|
|
|
|
|
|
|
|
|
## FIXME - what's a P4 projectName ? |
|
|
|
|
|
|
|
self.projectName = self.guessProjectName() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for info in p4CmdList("branches"): |
|
|
|
for info in p4CmdList("branches"): |
|
|
|
details = p4Cmd("branch -o %s" % info["branch"]) |
|
|
|
details = p4Cmd("branch -o %s" % info["branch"]) |
|
|
|
viewIdx = 0 |
|
|
|
viewIdx = 0 |
|
|
@ -1141,7 +1137,11 @@ class P4Sync(Command): |
|
|
|
self.getLabels(); |
|
|
|
self.getLabels(); |
|
|
|
|
|
|
|
|
|
|
|
if self.detectBranches: |
|
|
|
if self.detectBranches: |
|
|
|
self.getBranchMapping(); |
|
|
|
## FIXME - what's a P4 projectName ? |
|
|
|
|
|
|
|
self.projectName = self.guessProjectName() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if not self.hasOrigin: |
|
|
|
|
|
|
|
self.getBranchMapping(); |
|
|
|
if self.verbose: |
|
|
|
if self.verbose: |
|
|
|
print "p4-git branches: %s" % self.p4BranchesInGit |
|
|
|
print "p4-git branches: %s" % self.p4BranchesInGit |
|
|
|
print "initial parents: %s" % self.initialParents |
|
|
|
print "initial parents: %s" % self.initialParents |
|
|
|