Add p4 read_pipe and write_pipe wrappers
Two additional wrappers to cover 3 places where we utilise p4 in piped form. Found by Tor Arvid Lund. Signed-off-by: Anand Kumria <wildfire@progsoc.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Anand Kumria committed
Aug 14, 2008 at 23:40 UTC
d9429194f6e30e1f6f46a286217cd88972e1c83b
1 file changed
+7
contrib/fast-import/git-p4
+7
@@ -69,6 +69,10 @@ def write_pipe(c, str):
69
70
return val
71
72
+def p4_write_pipe(c, str):
73
+ real_cmd = p4_build_cmd(c)
74
+ return write_pipe(c, str)
75
+
76
def read_pipe(c, ignore_error=False):
77
if verbose:
78
sys.stderr.write('Reading pipe: %s\n' % c)
@@ -80,6 +84,9 @@ def read_pipe(c, ignore_error=False):
84
85
return val
86
87
+def p4_read_pipe(c, ignore_error=False):
88
+ real_cmd = p4_build_cmd(c)
89
+ return read_pipe(real_cmd, ignore_error)
90
91
def read_pipe_lines(c):
92
if verbose: