зеркало из https://github.com/microsoft/git.git
only run p4 print if necessary
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
This commit is contained in:
Родитель
982bb8a303
Коммит
f2eda79f69
|
@ -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]))
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче