Mercurial > hg
comparison tests/test-graft.t @ 44906:e5043679bfcc stable
graft-state: save --base in graft's state, fixing bug with graft --continue
Without this change, running graft --continue after grafting a merge commit using --base
(and encountering conflicts) will output "skipping ungraftable merge revision" even though
we specified a base in the initial graft command.
Graft's improve behaviour is reflected in test-graft.t.
Differential Revision: https://phab.mercurial-scm.org/D8578
author | Charles Chamberlain <cchamberlain@janestreet.com> |
---|---|
date | Tue, 26 May 2020 11:14:07 -0400 |
parents | 16c361152133 |
children | c4f14db3da1d |
comparison
equal
deleted
inserted
replaced
44830:91e509a12dbc | 44906:e5043679bfcc |
---|---|
851 $ hg graft -c | 851 $ hg graft -c |
852 grafting 24:2e7ea477be26 "24" | 852 grafting 24:2e7ea477be26 "24" |
853 $ cat a | 853 $ cat a |
854 abc | 854 abc |
855 | 855 |
856 graft --continue after --base with conflits | |
857 | |
858 $ echo base > d | |
859 $ hg ci -m _ | |
860 $ hg graft -r 6 | |
861 skipping ungraftable merge revision 6 | |
862 [255] | |
863 $ hg graft -r 6 --base 5 | |
864 grafting 6:25a2b029d3ae "6" | |
865 merging d | |
866 merging e | |
867 warning: conflicts while merging d! (edit, then use 'hg resolve --mark') | |
868 abort: unresolved conflicts, can't continue | |
869 (use 'hg resolve' and 'hg graft --continue') | |
870 [1] | |
871 $ echo a > d && hg resolve -qm | |
872 continue: hg graft --continue | |
873 $ hg graft --continue | |
874 grafting 6:25a2b029d3ae "6" | |
875 | |
856 Continue testing same origin policy, using revision numbers from test above | 876 Continue testing same origin policy, using revision numbers from test above |
857 but do some destructive editing of the repo: | 877 but do some destructive editing of the repo: |
858 | 878 |
859 $ hg up -qC 7 | 879 $ hg up -qC 7 |
860 $ hg tag -l -r 13 tmp | 880 $ hg tag -l -r 13 tmp |