Skip to content

Commit

Permalink
only run p4 print if necessary
Browse files Browse the repository at this point in the history
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
  • Loading branch information
Han-Wen Nienhuys committed May 30, 2007
1 parent 982bb8a commit f2eda79
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contrib/fast-import/git-p4
Original file line number Diff line number Diff line change
Expand Up @@ -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]))

Expand Down

0 comments on commit f2eda79

Please sign in to comment.