comparison mercurial/patch.py @ 34251: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
comparison
equal deleted inserted replaced
34250:448725a2ef73 34251:61714510220d
44 stringio = util.stringio 44 stringio = util.stringio
45 45
46 gitre = re.compile(br'diff --git a/(.*) b/(.*)') 46 gitre = re.compile(br'diff --git a/(.*) b/(.*)')
47 tabsplitter = re.compile(br'(\t+|[^\t]+)') 47 tabsplitter = re.compile(br'(\t+|[^\t]+)')
48 48
49 class PatchError(Exception): 49 PatchError = error.PatchError
50 pass
51
52 50
53 # public functions 51 # public functions
54 52
55 def split(stream): 53 def split(stream):
56 '''return an iterator of individual patches from a stream''' 54 '''return an iterator of individual patches from a stream'''