Create a specific version of the read_pipe_lines command for p4 invocations
This will make it easier to isolate changes to how 'p4' is invoked (whether with parameters or not, etc.). Signed-off-by: Anand Kumria <wildfire@progsoc.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Anand Kumria committed
Aug 10, 2008 at 19:26 UTC
2318121babea786390f51796bfce17088c3420ee
1 file changed
+7
contrib/fast-import/git-p4
+7
@@ -57,6 +57,13 @@ def read_pipe_lines(c):
57
58
return val
59
60
+def p4_read_pipe_lines(c):
61
+ """Specifically invoke p4 on the command supplied. """
62
+ real_cmd = "%s %s" % ("p4", c)
63
+ if verbose:
64
+ print real_cmd
65
+ return read_pipe_lines(real_cmd)
66
+
67
def system(cmd):
68
if verbose:
69
sys.stderr.write("executing %s\n" % cmd)