From: Han-Wen Nienhuys Date: Wed, 23 May 2007 21:49:35 +0000 (-0300) Subject: only run p4 print if necessary X-Git-Tag: v1.5.3-rc0~65^2^2~27 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f2eda79f6967363f9377ef3b137a35d0c86aca2c;p=git.git only run p4 print if necessary Signed-off-by: Han-Wen Nienhuys --- 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]))