summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ee06427)
raw | patch | inline | side by side (parent: ee06427)
author | Anand Kumria <wildfire@progsoc.org> | |
Sun, 10 Aug 2008 18:26:30 +0000 (19:26 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 12 Aug 2008 01:57:04 +0000 (18:57 -0700) |
Signed-off-by: Anand Kumria <wildfire@progsoc.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/fast-import/git-p4 | patch | blob | history |
index d36b0c6bec9cfe354146467ddd8e654df8826afb..2b6ea74d1c6224f8745bb4dd99770430f38ad247 100755 (executable)
def p4_read_pipe_lines(c):
"""Specifically invoke p4 on the command supplied. """
- real_cmd = "%s %s" % ("p4", c)
- if verbose:
- print real_cmd
+ real_cmd = p4_build_cmd(c)
return read_pipe_lines(real_cmd)
def system(cmd):
def p4_system(cmd):
"""Specifically invoke p4 as the system command. """
- real_cmd = "%s %s" % ("p4", cmd)
- if verbose:
- print real_cmd
+ real_cmd = p4_build_cmd(cmd)
return system(real_cmd)
def isP4Exec(kind):
return isModeExec(src_mode) != isModeExec(dst_mode)
def p4CmdList(cmd, stdin=None, stdin_mode='w+b'):
- cmd = "p4 -G %s" % cmd
+ cmd = p4_build_cmd("-G %s" % (cmd))
if verbose:
sys.stderr.write("Opening pipe: %s\n" % cmd)