##// END OF EJS Templates
Merge with crew-stable
Patrick Mezard -
r5551:dccc127b merge default
parent child Browse files
Show More
@@ -357,7 +357,7 b' class patchfile:'
357
357
358 if len(cand) > 1:
358 if len(cand) > 1:
359 # resort our list of potentials forward then back.
359 # resort our list of potentials forward then back.
360 cand.sort(cmp=sorter)
360 cand.sort(sorter)
361 return cand
361 return cand
362
362
363 def hashlines(self):
363 def hashlines(self):
@@ -129,3 +129,27 b' echo "% committer should be \'someoneelse'
129 hg --cwd b tip | grep someoneelse
129 hg --cwd b tip | grep someoneelse
130 echo "% should be empty"
130 echo "% should be empty"
131 hg --cwd b status
131 hg --cwd b status
132
133
134 # Test fuzziness (ambiguous patch location, fuzz=2)
135 echo % test fuzziness
136 hg init fuzzy
137 cd fuzzy
138 echo line1 > a
139 echo line0 >> a
140 echo line3 >> a
141 hg ci -Am adda
142 echo line1 > a
143 echo line2 >> a
144 echo line0 >> a
145 echo line3 >> a
146 hg ci -m change a
147 hg export tip > tip.patch
148 hg up -C 0
149 echo line1 > a
150 echo line0 >> a
151 echo line1 >> a
152 echo line0 >> a
153 hg ci -m brancha
154 hg import -v tip.patch
155 cd ..
@@ -125,3 +125,10 b' summary: subdir change'
125 % committer should be 'someoneelse'
125 % committer should be 'someoneelse'
126 user: someoneelse
126 user: someoneelse
127 % should be empty
127 % should be empty
128 % test fuzziness
129 adding a
130 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
131 applying tip.patch
132 patching file a
133 Hunk #1 succeeded at 1 with fuzz 2 (offset -2 lines).
134 a
General Comments 0
You need to be logged in to leave comments. Login now