mercurial/pure/mpatch.py
changeset 11122 2114e44b08f6
parent 10282 08a0f04b56bd
child 14065 8f7132fa5e59
equal deleted inserted replaced
11121:d061ef1d781c 11122:2114e44b08f6
   110         outlen += start - last
   110         outlen += start - last
   111         last = end
   111         last = end
   112         outlen += length
   112         outlen += length
   113 
   113 
   114     if bin != binend:
   114     if bin != binend:
   115         raise Exception("patch cannot be decoded")
   115         raise ValueError("patch cannot be decoded")
   116 
   116 
   117     outlen += orig - last
   117     outlen += orig - last
   118     return outlen
   118     return outlen