Mercurial > hg
comparison tests/test-merge-remove.t @ 35704:41ef02ba329b
merge: add `--abort` flag which can abort the merge
Currently we don't have a good functionality to abort the merge and tell user to
do `hg update -C .` which can leads to different results if user missed the '.'
and moreover does not align with other abort functionalities like rebase, shelve
etc.
This patch adds `hg merge --abort` which will abort the ongoing merge and take
us back to the chagneset where we started from. Works in both cases when merge
resulted in conflicts and when there were no conflicts.
.. feature::
A `--abort` flag to merge command to abort the ongoing merge.
Differential Revision: https://phab.mercurial-scm.org/D1829
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Mon, 08 Jan 2018 19:41:47 +0530 |
parents | 940c05b25b07 |
children | f785073f792c |
comparison
equal
deleted
inserted
replaced
35703:9a50ffd15b25 | 35704:41ef02ba329b |
---|---|
104 $ hg merge -f | 104 $ hg merge -f |
105 other [merge rev] changed bar which local [working copy] deleted | 105 other [merge rev] changed bar which local [working copy] deleted |
106 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u | 106 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u |
107 merging foo1 and foo to foo1 | 107 merging foo1 and foo to foo1 |
108 0 files updated, 1 files merged, 0 files removed, 1 files unresolved | 108 0 files updated, 1 files merged, 0 files removed, 1 files unresolved |
109 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon | 109 use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon |
110 [1] | 110 [1] |
111 $ cat bar | 111 $ cat bar |
112 bleh | 112 bleh |
113 $ hg st | 113 $ hg st |
114 M bar | 114 M bar |