hgext/record.py
changeset 18953 e4ae397595e8
parent 18287 eeadc76a7575
child 18954 b1639e98e8a1
--- a/hgext/record.py	Mon Apr 15 01:22:15 2013 +0900
+++ b/hgext/record.py	Thu Apr 11 19:03:33 2013 +0200
@@ -531,7 +531,11 @@
         fp.seek(0)
 
         # 1. filter patch, so we have intending-to apply subset of it
-        chunks = filterpatch(ui, parsepatch(fp))
+        try:
+            chunks = filterpatch(ui, parsepatch(fp))
+        except patch.PatchError, err:
+            raise util.Abort(_('error parsing patch: %s') % err)
+
         del fp
 
         contenders = set()