Commits

Steve Borho committed 12c8032

patchctx: catch AttributeError from record.parsepatch() (fixes #710)

The problem patch is still not usable, but at least the shelve tool is otherwise
functional

Comments (0)

Files changed (1)

tortoisehg/util/patchctx.py

                         files[path] = [chunk]
                         self._fileorder.append(path)
                     files[path].extend(chunk.hunks)
-            except patch.PatchError, e:
+            except (patch.PatchError, AttributeError), e:
                 self._status[2].append(self._parseErrorFileName)
                 files[self._parseErrorFileName] = []
                 self._parseerror = e