summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a3fdd57)
raw | patch | inline | side by side (parent: a3fdd57)
author | Simon Hausmann <simon@lst.de> | |
Fri, 8 Jun 2007 06:49:22 +0000 (08:49 +0200) | ||
committer | Simon Hausmann <simon@lst.de> | |
Fri, 8 Jun 2007 06:49:22 +0000 (08:49 +0200) |
syncing with the help of an origin remote (which we instead then use
to get new branches from).
Signed-off-by: Simon Hausmann <simon@lst.de>
to get new branches from).
Signed-off-by: Simon Hausmann <simon@lst.de>
contrib/fast-import/git-p4 | patch | blob | history |
index efec0be32c41a9114dbf83f96ee12ad414e9bd05..36fe69a79540029a83f4e31a5b980523e49b96d1 100755 (executable)
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
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