Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Have a command that specifically invokes 'p4' (via system)
author
Anand Kumria
<wildfire@progsoc.org>
Sun, 10 Aug 2008 18:26:26 +0000
(19:26 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 12 Aug 2008 01:57:03 +0000
(18:57 -0700)
Similiar to our 'p4_read_pipe_lines' command, we can isolate
specific changes to the invocation method in the one location
with this change.
Signed-off-by: Anand Kumria <wildfire@progsoc.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/fast-import/git-p4
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
b340fa4
)
diff --git
a/contrib/fast-import/git-p4
b/contrib/fast-import/git-p4
index 3deaa42559c38484395a81d9ac0963e279878a84..08acd517ba1c1778857ec1de7802a587ac5bcaf8 100755
(executable)
--- a/
contrib/fast-import/git-p4
+++ b/
contrib/fast-import/git-p4
@@
-70,6
+70,13
@@
def system(cmd):
if os.system(cmd) != 0:
die("command failed: %s" % cmd)
+def p4_system(cmd):
+ """Specifically invoke p4 as the system command. """
+ real_cmd = "%s %s" % ("p4", cmd)
+ if verbose:
+ print real_cmd
+ return system(real_cmd)
+
def isP4Exec(kind):
"""Determine if a Perforce 'kind' should have execute permission