##// END OF EJS Templates
imerge: replace "merge" with "internal:merge" when non-interactive
Patrick Mezard -
r6362:bc3dbdb1 default
parent child Browse files
Show More
@@ -120,7 +120,7 b' class Imerge(object):'
120 # this could be greatly improved
120 # this could be greatly improved
121 realmerge = os.environ.get('HGMERGE')
121 realmerge = os.environ.get('HGMERGE')
122 if not interactive:
122 if not interactive:
123 os.environ['HGMERGE'] = 'merge'
123 os.environ['HGMERGE'] = 'internal:merge'
124
124
125 # The filemerge ancestor algorithm does not work if self.wctx
125 # The filemerge ancestor algorithm does not work if self.wctx
126 # already has two parents (in normal merge it doesn't yet). But
126 # already has two parents (in normal merge it doesn't yet). But
@@ -46,6 +46,11 b' echo % save'
46 echo foo > foo2
46 echo foo > foo2
47 hg imerge save ../savedmerge
47 hg imerge save ../savedmerge
48
48
49 echo % merge auto
50 hg up -C 1
51 hg --traceback imerge --auto
52 cat foo2
53
49 echo % load
54 echo % load
50 hg up -C 0
55 hg up -C 0
51 hg imerge --traceback load ../savedmerge
56 hg imerge --traceback load ../savedmerge
@@ -23,6 +23,20 b' all conflicts resolved'
23 merging foo and foo2
23 merging foo and foo2
24 all conflicts resolved
24 all conflicts resolved
25 % save
25 % save
26 % merge auto
27 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
28 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
29 (branch merge, don't forget to commit)
30 merging foo2 and foo
31 warning: conflicts during merge.
32 merging foo2 failed!
33 U foo2
34 foo
35 <<<<<<< local
36 foo
37 =======
38 bar
39 >>>>>>> other
26 % load
40 % load
27 2 files updated, 0 files merged, 1 files removed, 0 files unresolved
41 2 files updated, 0 files merged, 1 files removed, 0 files unresolved
28 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
42 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
General Comments 0
You need to be logged in to leave comments. Login now