@matheusbsbs / matheus-bagliano / commits / 1b9a46849a
Fork 0

print error message when p4 print fails (eg. due to permission problems)

Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>

Han-Wen Nienhuys committed May 23, 2007 at 18:49 UTC 1b9a46849a45f2b0f58d6286957316f720a301b6
1 file changed +5
contrib/fast-import/git-p4
+5
@@ -702,6 +702,11 @@ class P4Sync(Command):
702 text += filedata[j]['data']
703 j += 1
704
705 +
706 + if not stat.has_key('depotFile'):
707 + sys.stderr.write("p4 print fails with: %s\n" % repr(stat))
708 + continue
709 +
710 contents[stat['depotFile']] = text
711
712 for f in files: