Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Turn off potentially slow label detection by default
author
Simon Hausmann
<simon@lst.de>
Sat, 7 Apr 2007 22:12:02 +0000
(
00:12
+0200)
committer
Simon Hausmann
<simon@lst.de>
Sat, 7 Apr 2007 22:12:02 +0000
(
00:12
+0200)
Signed-off-by: Simon Hausmann <simon@lst.de>
contrib/fast-import/git-p4
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
1f52af6
)
diff --git
a/contrib/fast-import/git-p4
b/contrib/fast-import/git-p4
index 170af90abc963a1fb5b1f679a9d4ee4acf14de4e..fcdfe22a45ad58ea4bf8b7fa0979b256a622c987 100755
(executable)
--- a/
contrib/fast-import/git-p4
+++ b/
contrib/fast-import/git-p4
@@
-417,7
+417,8
@@
class P4Sync(Command):
optparse.make_option("--silent", dest="silent", action="store_true"),
optparse.make_option("--known-branches", dest="knownBranches"),
optparse.make_option("--data-cache", dest="dataCache", action="store_true"),
optparse.make_option("--silent", dest="silent", action="store_true"),
optparse.make_option("--known-branches", dest="knownBranches"),
optparse.make_option("--data-cache", dest="dataCache", action="store_true"),
- optparse.make_option("--command-cache", dest="commandCache", action="store_true")
+ optparse.make_option("--command-cache", dest="commandCache", action="store_true"),
+ optparse.make_option("--detect-labels", dest="detectLabels", action="store_true")
]
self.description = """Imports from Perforce into a git repository.\n
example:
]
self.description = """Imports from Perforce into a git repository.\n
example:
@@
-437,6
+438,7
@@
class P4Sync(Command):
self.committedChanges = Set()
self.branch = ""
self.detectBranches = False
self.committedChanges = Set()
self.branch = ""
self.detectBranches = False
+ self.detectLabels = False
self.changesFile = ""
def p4File(self, depotPath):
self.changesFile = ""
def p4File(self, depotPath):
@@
-892,7
+894,9
@@
class P4Sync(Command):
self.globalPrefix += "/"
self.getUserMap()
self.globalPrefix += "/"
self.getUserMap()
- self.getLabels();
+ self.labels = {}
+ if self.detectLabels:
+ self.getLabels();
if len(self.changeRange) == 0:
try:
if len(self.changeRange) == 0:
try: