1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-03 23:36:11 +02:00

Have a command that specifically invokes 'p4' (via system)

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>
This commit is contained in:
Anand Kumria 2008-08-10 19:26:26 +01:00 committed by Junio C Hamano
parent b340fa4301
commit bf9320f151

View File

@ -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