Mercurial > hg-stable
diff tests/test-graft.t @ 38250:2b8c8b8d1a06
graft: reuse the --log value passed initially in `hg graft --continue` (BC)
We now stores the value of --log flag passed initially in the graftstate and
reuse that value when doing `hg graft --continue` which is a nice behavior.
The test updates demonstrate the fix.
Since we now preserve the value by default, drop the mention of `--log` flag
from the hint which we see after conflicts.
Differential Revision: https://phab.mercurial-scm.org/D3662
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sat, 26 May 2018 03:01:14 +0530 |
parents | 66fc2ef8dbff |
children | 2ec44160165d |
line wrap: on
line diff
--- a/tests/test-graft.t Sat May 26 02:57:36 2018 +0530 +++ b/tests/test-graft.t Sat May 26 03:01:14 2018 +0530 @@ -213,7 +213,7 @@ my e@1905859650ec+ other e@9c233e8e184d ancestor e@4c60f11aa304 warning: conflicts while merging e! (edit, then use 'hg resolve --mark') abort: unresolved conflicts, can't continue - (use 'hg resolve' and 'hg graft --continue --log') + (use 'hg resolve' and 'hg graft --continue') [255] Summary should mention graft: @@ -1545,7 +1545,7 @@ merging b warning: conflicts while merging b! (edit, then use 'hg resolve --mark') abort: unresolved conflicts, can't continue - (use 'hg resolve' and 'hg graft --continue --log') + (use 'hg resolve' and 'hg graft --continue') [255] $ echo foobar > b @@ -1558,10 +1558,10 @@ grafting 2:8be98ac1a569 "added c" $ hg log -GT "{rev}:{node|short} {desc}" -r '.^^::.' - @ 11:7ee8d3496b19 added c - | - o 10:802f1eae3af3 added b - | + @ 11:30c1050a58b2 added c + | (grafted from 8be98ac1a56990c2d9ca6861041b8390af7bd6f3) + o 10:ec7eda2313e2 added b + | (grafted from 80e6d2c47cfe5b3185519568327a17a061c7efb6) o 3:9e887f7a939c bar to b | ~