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

  • Participants
  • Parent commits d0fbbfc
  • Branches stable

Comments (0)

Files changed (1)

File 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