##// END OF EJS Templates
patch: turned strings with backslashes into raw strings...
Martin Geisler -
r7736:fb0776fe default
parent child Browse files
Show More
@@ -52,9 +52,9 b' def extract(ui, fileobj):'
52
52
53 # attempt to detect the start of a patch
53 # attempt to detect the start of a patch
54 # (this heuristic is borrowed from quilt)
54 # (this heuristic is borrowed from quilt)
55 diffre = re.compile(r'^(?:Index:[ \t]|diff[ \t]|RCS file: |' +
55 diffre = re.compile(r'^(?:Index:[ \t]|diff[ \t]|RCS file: |'
56 'retrieving revision [0-9]+(\.[0-9]+)*$|' +
56 r'retrieving revision [0-9]+(\.[0-9]+)*$|'
57 '(---|\*\*\*)[ \t])', re.MULTILINE)
57 r'(---|\*\*\*)[ \t])', re.MULTILINE)
58
58
59 fd, tmpname = tempfile.mkstemp(prefix='hg-patch-')
59 fd, tmpname = tempfile.mkstemp(prefix='hg-patch-')
60 tmpfp = os.fdopen(fd, 'w')
60 tmpfp = os.fdopen(fd, 'w')
General Comments 0
You need to be logged in to leave comments. Login now