##// END OF EJS Templates
py3: add b'' prefixes in test-transplant.t...
Pulkit Goyal -
r36344:a2cbff47 default
parent child Browse files
Show More
@@ -891,14 +891,14 b" timestamp of them isn't changed on the f"
891 891 > # emulate that patch.patch() is aborted at patching on "abort" file
892 892 > from mercurial import error, extensions, patch as patchmod
893 893 > def patch(orig, ui, repo, patchname,
894 > strip=1, prefix='', files=None,
895 > eolmode='strict', similarity=0):
894 > strip=1, prefix=b'', files=None,
895 > eolmode=b'strict', similarity=0):
896 896 > if files is None:
897 897 > files = set()
898 898 > r = orig(ui, repo, patchname,
899 899 > strip=strip, prefix=prefix, files=files,
900 900 > eolmode=eolmode, similarity=similarity)
901 > if 'abort' in files:
901 > if b'abort' in files:
902 902 > raise error.PatchError('intentional error while patching')
903 903 > return r
904 904 > def extsetup(ui):
General Comments 0
You need to be logged in to leave comments. Login now