diff options
author | Han-Wen Nienhuys <hanwen@google.com> | 2007-05-23 18:49:35 -0300 |
---|---|---|
committer | Han-Wen Nienhuys <hanwen@google.com> | 2007-05-30 18:50:41 -0300 |
commit | f2eda79f6967363f9377ef3b137a35d0c86aca2c (patch) | |
tree | 86789058f6d95cbf86b48aa7e19d602d9011b032 /contrib | |
parent | 982bb8a30376d0024a1794426e6e2291a7a21294 (diff) | |
download | git-f2eda79f6967363f9377ef3b137a35d0c86aca2c.tar.gz git-f2eda79f6967363f9377ef3b137a35d0c86aca2c.tar.xz |
only run p4 print if necessary
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/fast-import/git-p4 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/fast-import/git-p4 b/contrib/fast-import/git-p4 index 63d7a4c99..76bbe3fdb 100755 --- a/contrib/fast-import/git-p4 +++ b/contrib/fast-import/git-p4 @@ -677,6 +677,9 @@ class P4Sync(Command): 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])) |