commit | f2eda79f6967363f9377ef3b137a35d0c86aca2c | [log] [tgz] |
---|---|---|
author | Han-Wen Nienhuys <hanwen@google.com> | Wed May 23 18:49:35 2007 -0300 |
committer | Han-Wen Nienhuys <hanwen@google.com> | Wed May 30 18:50:41 2007 -0300 |
tree | 86789058f6d95cbf86b48aa7e19d602d9011b032 | |
parent | 982bb8a30376d0024a1794426e6e2291a7a21294 [diff] [blame] |
only run p4 print if necessary Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
diff --git a/contrib/fast-import/git-p4 b/contrib/fast-import/git-p4 index 63d7a4c..76bbe3f 100755 --- a/contrib/fast-import/git-p4 +++ b/contrib/fast-import/git-p4
@@ -677,6 +677,9 @@ specs = [(f['path'] + "#" + f['rev'], f) for f in files if f['action'] != 'delete'] + if not specs: + return + data = read_pipe('p4 print %s' % ' '.join(['"%s"' % path for (path, info) in specs]))