From: Han-Wen Nienhuys Date: Wed, 23 May 2007 21:49:35 +0000 (-0300) Subject: print error message when p4 print fails (eg. due to permission problems) X-Git-Tag: v1.5.3-rc0~65^2^2~21 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/1b9a46849a45f2b0f58d6286957316f720a301b6?ds=inline;hp=-c print error message when p4 print fails (eg. due to permission problems) Signed-off-by: Han-Wen Nienhuys --- 1b9a46849a45f2b0f58d6286957316f720a301b6 diff --git a/contrib/fast-import/git-p4 b/contrib/fast-import/git-p4 index e955ad4f44..35c24c93e3 100755 --- a/contrib/fast-import/git-p4 +++ b/contrib/fast-import/git-p4 @@ -702,6 +702,11 @@ class P4Sync(Command): text += filedata[j]['data'] j += 1 + + if not stat.has_key('depotFile'): + sys.stderr.write("p4 print fails with: %s\n" % repr(stat)) + continue + contents[stat['depotFile']] = text for f in files: