##// END OF EJS Templates
keyword: handle resolve to either parent...
Christian Ebert -
r23622:cb9d8454 default
parent child Browse files
Show More
@@ -264,8 +264,17 b' class kwtemplater(object):'
264 if util.binary(data):
264 if util.binary(data):
265 continue
265 continue
266 if expand:
266 if expand:
267 parents = ctx.parents()
267 if lookup:
268 if lookup:
268 ctx = self.linkctx(f, mf[f])
269 ctx = self.linkctx(f, mf[f])
270 elif self.restrict and len(parents) > 1:
271 # merge commit
272 # in case of conflict f is in modified state during
273 # merge, even if f does not differ from f in parent
274 for p in parents:
275 if f in p and not p[f].cmp(ctx[f]):
276 ctx = p[f].changectx()
277 break
269 data, found = self.substitute(data, f, ctx, re_kw.subn)
278 data, found = self.substitute(data, f, ctx, re_kw.subn)
270 elif self.restrict:
279 elif self.restrict:
271 found = re_kw.search(data)
280 found = re_kw.search(data)
@@ -1062,13 +1062,13 b' conflict: keyword should stay outside co'
1062 foo
1062 foo
1063 >>>>>>> other: 85d2d2d732a5 - test: simplemerge
1063 >>>>>>> other: 85d2d2d732a5 - test: simplemerge
1064
1064
1065 resolve to local
1065 resolve to local, m must contain hash of last change (local parent)
1066
1066
1067 $ hg resolve -t internal:local -a
1067 $ hg resolve -t internal:local -a
1068 (no more unresolved files)
1068 (no more unresolved files)
1069 $ hg commit -m localresolve
1069 $ hg commit -m localresolve
1070 $ cat m
1070 $ cat m
1071 $Id: m 800511b3a22d Thu, 01 Jan 1970 00:00:00 +0000 test $
1071 $Id: m 88a80c8d172e Thu, 01 Jan 1970 00:00:00 +0000 test $
1072 bar
1072 bar
1073
1073
1074 Test restricted mode with transplant -b
1074 Test restricted mode with transplant -b
General Comments 0
You need to be logged in to leave comments. Login now