##// END OF EJS Templates
merge: fix bug going backwards for already reverted files (issue1303)
Matt Mackall -
r7066:865c5be0 default
parent child Browse files
Show More
@@ -185,8 +185,9 b' def manifestmerge(repo, p1, p2, pa, over'
185 if overwrite:
185 if overwrite:
186 act("clobbering", "g", f, rflags)
186 act("clobbering", "g", f, rflags)
187 # or are we going back in time and clean?
187 # or are we going back in time and clean?
188 elif backwards and not n[20:]:
188 elif backwards:
189 act("reverting", "g", f, rflags)
189 if not n[20:] or not p2[f].cmp(p1[f].data()):
190 act("reverting", "g", f, rflags)
190 # are both different from the ancestor?
191 # are both different from the ancestor?
191 elif n != a and m2[f] != a:
192 elif n != a and m2[f] != a:
192 act("versions differ", "m", f, f, f, rflags, False)
193 act("versions differ", "m", f, f, f, rflags, False)
@@ -3,6 +3,6 b' 79abf14474dc tip'
3 % make sure we notice the change of mode if the cached size == -1
3 % make sure we notice the change of mode if the cached size == -1
4 n 0 -1 unset a
4 n 0 -1 unset a
5 M a
5 M a
6 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
6 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
7 d69afc33ff8a
7 d69afc33ff8a
8 not executable -- whew
8 not executable -- whew
General Comments 0
You need to be logged in to leave comments. Login now