summaryrefslogtreecommitdiff
path: root/contrib/fast-import/git-p4
diff options
context:
space:
mode:
authorLibravatar Simon Hausmann <shausman@trolltech.com>2007-05-20 23:39:40 +0200
committerLibravatar Simon Hausmann <shausman@trolltech.com>2007-05-20 23:39:40 +0200
commit8a5fc95b43ab25e7ce0ca14cf733669e5708b448 (patch)
tree9542f081ca0d6a0b1ce3a3804dff0493b4f8f266 /contrib/fast-import/git-p4
parentAdded support for git-p4 submit --direct (experimental) (diff)
downloadtgif-8a5fc95b43ab25e7ce0ca14cf733669e5708b448.tar.xz
Specifying --detect-branches is now only needed for the initial clone/sync.
Afterwards it's turned on implicitly if more p4 branches than remotes/p4/master are found. Signed-off-by: Simon Hausmann <shausman@trolltech.com>
Diffstat (limited to 'contrib/fast-import/git-p4')
-rwxr-xr-xcontrib/fast-import/git-p43
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/fast-import/git-p4 b/contrib/fast-import/git-p4
index bcea4cf3de..d4bf67333f 100755
--- a/contrib/fast-import/git-p4
+++ b/contrib/fast-import/git-p4
@@ -719,6 +719,9 @@ class P4Sync(Command):
self.initialParents = {}
self.listExistingP4GitBranches()
+ if len(self.p4BranchesInGit) > 1:
+ print "Importing from/into multiple branches"
+ self.detectBranches = True
if self.syncWithOrigin and gitBranchExists("origin") and gitBranchExists("refs/remotes/p4/master") and not self.detectBranches:
### needs to be ported to multi branch import