1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-22 02:46:10 +02:00

only run p4 print if necessary

Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
This commit is contained in:
Han-Wen Nienhuys 2007-05-23 18:49:35 -03:00
parent 982bb8a303
commit f2eda79f69

View File

@ -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]))