提交 bf9320f1 编写于 作者: A Anand Kumria 提交者: Junio C Hamano

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: NAnand Kumria <wildfire@progsoc.org>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 b340fa43
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册