]> asedeno.scripts.mit.edu Git - git.git/commitdiff
Add p4 read_pipe and write_pipe wrappers
authorAnand Kumria <wildfire@progsoc.org>
Thu, 14 Aug 2008 22:40:38 +0000 (23:40 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 15 Aug 2008 01:14:23 +0000 (18:14 -0700)
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>
contrib/fast-import/git-p4

index 6c64224b7716d32005b37c984aa6cdd8a95c0c1f..3e9df70f29dcfa16ab263d5ace42d8d6acf9aecd 100755 (executable)
@@ -69,6 +69,10 @@ def write_pipe(c, str):
 
     return val
 
+def p4_write_pipe(c, str):
+    real_cmd = p4_build_cmd(c)
+    return write_pipe(c, str)
+
 def read_pipe(c, ignore_error=False):
     if verbose:
         sys.stderr.write('Reading pipe: %s\n' % c)
@@ -80,6 +84,9 @@ def read_pipe(c, ignore_error=False):
 
     return val
 
+def p4_read_pipe(c, ignore_error=False):
+    real_cmd = p4_build_cmd(c)
+    return read_pipe(real_cmd, ignore_error)
 
 def read_pipe_lines(c):
     if verbose: