Mercurial > public > mercurial-scm > hg-stable
diff mercurial/patch.py @ 34258:61714510220d
error: move patch.PatchError so it can easily implement __bytes__ (API)
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 03 Sep 2017 16:45:33 +0900 |
parents | a8994d08e4a2 |
children | c43d055ae405 |
line wrap: on
line diff
--- a/mercurial/patch.py Fri Sep 15 00:01:57 2017 -0700 +++ b/mercurial/patch.py Sun Sep 03 16:45:33 2017 +0900 @@ -46,9 +46,7 @@ gitre = re.compile(br'diff --git a/(.*) b/(.*)') tabsplitter = re.compile(br'(\t+|[^\t]+)') -class PatchError(Exception): - pass - +PatchError = error.PatchError # public functions