2019-12-10 02:24:31 +03:00
|
|
|
#chg-compatible
|
|
|
|
|
2018-01-23 23:09:16 +03:00
|
|
|
$ . helpers-usechg.sh
|
|
|
|
|
2015-11-26 01:25:33 +03:00
|
|
|
Tests for change/delete conflicts, including:
|
2010-09-18 02:03:08 +04:00
|
|
|
b5605d88dc27: Make ui.prompt repeat on "unrecognized response" again
|
|
|
|
(issue897)
|
|
|
|
|
|
|
|
840e2b315c1f: Fix misleading error and prompts during update/merge
|
|
|
|
(issue556)
|
2010-09-12 13:52:13 +04:00
|
|
|
|
2015-11-10 09:37:32 +03:00
|
|
|
Make sure HGMERGE doesn't interfere with the test
|
|
|
|
$ unset HGMERGE
|
|
|
|
|
2010-09-12 13:52:13 +04:00
|
|
|
$ status() {
|
|
|
|
> echo "--- status ---"
|
2015-11-24 00:43:14 +03:00
|
|
|
> hg st -A file1 file2 file3
|
2015-11-24 00:45:56 +03:00
|
|
|
> echo "--- resolve --list ---"
|
|
|
|
> hg resolve --list file1 file2 file3
|
2015-11-26 01:26:46 +03:00
|
|
|
> echo "--- debugmergestate ---"
|
|
|
|
> hg debugmergestate
|
2015-11-24 00:43:14 +03:00
|
|
|
> for file in file1 file2 file3; do
|
2010-09-12 13:52:13 +04:00
|
|
|
> if [ -f $file ]; then
|
|
|
|
> echo "--- $file ---"
|
|
|
|
> cat $file
|
|
|
|
> else
|
|
|
|
> echo "*** $file does not exist"
|
|
|
|
> fi
|
|
|
|
> done
|
|
|
|
> }
|
|
|
|
|
2015-11-26 01:25:33 +03:00
|
|
|
$ hg init repo
|
|
|
|
$ cd repo
|
2010-09-12 13:52:13 +04:00
|
|
|
|
|
|
|
$ echo 1 > file1
|
|
|
|
$ echo 2 > file2
|
2015-11-24 00:43:14 +03:00
|
|
|
$ echo 3 > file3
|
|
|
|
$ hg ci -Am 'added files'
|
2010-09-12 13:52:13 +04:00
|
|
|
adding file1
|
|
|
|
adding file2
|
2015-11-24 00:43:14 +03:00
|
|
|
adding file3
|
2010-09-12 13:52:13 +04:00
|
|
|
|
|
|
|
$ hg rm file1
|
|
|
|
$ echo changed >> file2
|
2015-11-24 00:43:14 +03:00
|
|
|
$ echo changed1 >> file3
|
|
|
|
$ hg ci -m 'removed file1, changed file2, changed file3'
|
2010-09-12 13:52:13 +04:00
|
|
|
|
|
|
|
$ hg co 0
|
2015-11-24 00:43:14 +03:00
|
|
|
3 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
2010-09-12 13:52:13 +04:00
|
|
|
|
|
|
|
$ echo changed >> file1
|
|
|
|
$ hg rm file2
|
2015-11-24 00:43:14 +03:00
|
|
|
$ echo changed2 >> file3
|
|
|
|
$ hg ci -m 'changed file1, removed file2, changed file3'
|
2010-09-12 13:52:13 +04:00
|
|
|
|
|
|
|
|
|
|
|
Non-interactive merge:
|
|
|
|
|
2010-09-22 01:00:02 +04:00
|
|
|
$ hg merge -y
|
2016-10-07 18:51:50 +03:00
|
|
|
local [working copy] changed file1 which other [merge rev] deleted
|
2015-12-23 23:51:45 +03:00
|
|
|
use (c)hanged version, (d)elete, or leave (u)nresolved? u
|
2016-10-07 18:51:50 +03:00
|
|
|
other [merge rev] changed file2 which local [working copy] deleted
|
2019-09-19 06:39:33 +03:00
|
|
|
use (c)hanged version, leave (d)eleted, leave (u)nresolved, or input (r)enamed path? u
|
2015-11-24 00:43:14 +03:00
|
|
|
merging file3
|
2018-10-22 22:45:46 +03:00
|
|
|
warning: 1 conflicts while merging file3! (edit, then use 'hg resolve --mark')
|
2015-12-23 23:51:45 +03:00
|
|
|
0 files updated, 0 files merged, 0 files removed, 3 files unresolved
|
2015-11-24 00:43:14 +03:00
|
|
|
use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
|
|
|
|
[1]
|
2010-09-12 13:52:13 +04:00
|
|
|
|
|
|
|
$ status
|
|
|
|
--- status ---
|
|
|
|
M file2
|
2015-11-24 00:43:14 +03:00
|
|
|
M file3
|
2010-09-12 13:52:13 +04:00
|
|
|
C file1
|
2015-11-24 00:45:56 +03:00
|
|
|
--- resolve --list ---
|
2015-12-23 23:51:45 +03:00
|
|
|
U file1
|
|
|
|
U file2
|
2015-11-24 00:45:56 +03:00
|
|
|
U file3
|
2015-11-26 01:26:46 +03:00
|
|
|
--- debugmergestate ---
|
|
|
|
* version 2 records
|
|
|
|
local: 13910f48cf7bdb2a0ba6e24b4900e4fdd5739dd4
|
|
|
|
other: 10f9a0a634e82080907e62f075ab119cbc565ea6
|
2016-10-07 18:51:50 +03:00
|
|
|
labels:
|
|
|
|
local: working copy
|
|
|
|
other: merge rev
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file1 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-12-23 23:51:45 +03:00
|
|
|
file: file1 (record type "C", state "u", hash 60b27f004e454aca81b0480209cce5081ec52390)
|
2015-11-26 01:25:33 +03:00
|
|
|
local path: file1 (flags "")
|
|
|
|
ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
|
|
|
|
other path: file1 (node null)
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file2 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-12-23 23:51:45 +03:00
|
|
|
file: file2 (record type "C", state "u", hash null)
|
2015-11-26 01:25:33 +03:00
|
|
|
local path: file2 (flags "")
|
|
|
|
ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
|
|
|
|
other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file3 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-11-26 01:26:46 +03:00
|
|
|
file: file3 (record type "F", state "u", hash d5b0a58bc47161b1b8a831084b366f757c4f0b11)
|
|
|
|
local path: file3 (flags "")
|
|
|
|
ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
|
|
|
|
other path: file3 (node a2644c43e210356772c7772a8674544a62e06beb)
|
2010-09-12 13:52:13 +04:00
|
|
|
--- file1 ---
|
|
|
|
1
|
|
|
|
changed
|
|
|
|
--- file2 ---
|
|
|
|
2
|
|
|
|
changed
|
2015-11-24 00:43:14 +03:00
|
|
|
--- file3 ---
|
|
|
|
3
|
2016-10-07 18:51:50 +03:00
|
|
|
<<<<<<< working copy: 13910f48cf7b - test: changed file1, removed file2, chan...
|
2015-11-24 00:43:14 +03:00
|
|
|
changed2
|
|
|
|
=======
|
|
|
|
changed1
|
2016-11-20 02:41:37 +03:00
|
|
|
>>>>>>> merge rev: 10f9a0a634e8 - test: removed file1, changed file2, chan...
|
2010-09-12 13:52:13 +04:00
|
|
|
|
|
|
|
|
|
|
|
Interactive merge:
|
|
|
|
|
|
|
|
$ hg co -C
|
2015-11-24 00:43:14 +03:00
|
|
|
1 files updated, 0 files merged, 1 files removed, 0 files unresolved
|
2017-06-06 19:47:39 +03:00
|
|
|
updated to "13910f48cf7b: changed file1, removed file2, changed file3"
|
2016-02-02 17:49:02 +03:00
|
|
|
1 other heads for branch "default"
|
2010-09-12 13:52:13 +04:00
|
|
|
|
2010-09-22 01:00:02 +04:00
|
|
|
$ hg merge --config ui.interactive=true <<EOF
|
2010-09-12 13:52:13 +04:00
|
|
|
> c
|
|
|
|
> d
|
|
|
|
> EOF
|
2016-10-07 18:51:50 +03:00
|
|
|
local [working copy] changed file1 which other [merge rev] deleted
|
2015-12-01 00:43:55 +03:00
|
|
|
use (c)hanged version, (d)elete, or leave (u)nresolved? c
|
2016-10-07 18:51:50 +03:00
|
|
|
other [merge rev] changed file2 which local [working copy] deleted
|
2019-09-19 06:39:33 +03:00
|
|
|
use (c)hanged version, leave (d)eleted, leave (u)nresolved, or input (r)enamed path? d
|
2015-11-24 00:43:14 +03:00
|
|
|
merging file3
|
2018-10-22 22:45:46 +03:00
|
|
|
warning: 1 conflicts while merging file3! (edit, then use 'hg resolve --mark')
|
2015-11-26 01:25:33 +03:00
|
|
|
0 files updated, 2 files merged, 0 files removed, 1 files unresolved
|
2015-11-24 00:43:14 +03:00
|
|
|
use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
|
|
|
|
[1]
|
2010-09-12 13:52:13 +04:00
|
|
|
|
|
|
|
$ status
|
|
|
|
--- status ---
|
2011-11-16 06:45:14 +04:00
|
|
|
file2: * (glob)
|
2015-11-24 00:43:14 +03:00
|
|
|
M file3
|
2010-09-12 13:52:13 +04:00
|
|
|
C file1
|
2015-11-24 00:45:56 +03:00
|
|
|
--- resolve --list ---
|
2015-11-26 01:25:33 +03:00
|
|
|
R file1
|
|
|
|
R file2
|
2015-11-24 00:45:56 +03:00
|
|
|
U file3
|
2015-11-26 01:26:46 +03:00
|
|
|
--- debugmergestate ---
|
|
|
|
* version 2 records
|
|
|
|
local: 13910f48cf7bdb2a0ba6e24b4900e4fdd5739dd4
|
|
|
|
other: 10f9a0a634e82080907e62f075ab119cbc565ea6
|
2016-10-07 18:51:50 +03:00
|
|
|
labels:
|
|
|
|
local: working copy
|
|
|
|
other: merge rev
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file1 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-11-26 01:25:33 +03:00
|
|
|
file: file1 (record type "C", state "r", hash 60b27f004e454aca81b0480209cce5081ec52390)
|
|
|
|
local path: file1 (flags "")
|
|
|
|
ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
|
|
|
|
other path: file1 (node null)
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file2 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-11-26 01:25:33 +03:00
|
|
|
file: file2 (record type "C", state "r", hash null)
|
|
|
|
local path: file2 (flags "")
|
|
|
|
ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
|
|
|
|
other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file3 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-11-26 01:26:46 +03:00
|
|
|
file: file3 (record type "F", state "u", hash d5b0a58bc47161b1b8a831084b366f757c4f0b11)
|
|
|
|
local path: file3 (flags "")
|
|
|
|
ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
|
|
|
|
other path: file3 (node a2644c43e210356772c7772a8674544a62e06beb)
|
2010-09-12 13:52:13 +04:00
|
|
|
--- file1 ---
|
|
|
|
1
|
|
|
|
changed
|
|
|
|
*** file2 does not exist
|
2015-11-24 00:43:14 +03:00
|
|
|
--- file3 ---
|
|
|
|
3
|
2016-10-07 18:51:50 +03:00
|
|
|
<<<<<<< working copy: 13910f48cf7b - test: changed file1, removed file2, chan...
|
2015-11-24 00:43:14 +03:00
|
|
|
changed2
|
|
|
|
=======
|
|
|
|
changed1
|
2016-11-20 02:41:37 +03:00
|
|
|
>>>>>>> merge rev: 10f9a0a634e8 - test: removed file1, changed file2, chan...
|
2010-09-12 13:52:13 +04:00
|
|
|
|
|
|
|
|
|
|
|
Interactive merge with bad input:
|
|
|
|
|
|
|
|
$ hg co -C
|
2015-11-24 00:43:14 +03:00
|
|
|
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
2017-06-06 19:47:39 +03:00
|
|
|
updated to "13910f48cf7b: changed file1, removed file2, changed file3"
|
2016-02-02 17:49:02 +03:00
|
|
|
1 other heads for branch "default"
|
2010-09-12 13:52:13 +04:00
|
|
|
|
2010-09-22 01:00:02 +04:00
|
|
|
$ hg merge --config ui.interactive=true <<EOF
|
2010-09-12 13:52:13 +04:00
|
|
|
> foo
|
|
|
|
> bar
|
|
|
|
> d
|
|
|
|
> baz
|
|
|
|
> c
|
|
|
|
> EOF
|
2016-10-07 18:51:50 +03:00
|
|
|
local [working copy] changed file1 which other [merge rev] deleted
|
2015-12-01 00:43:55 +03:00
|
|
|
use (c)hanged version, (d)elete, or leave (u)nresolved? foo
|
2014-10-01 03:04:18 +04:00
|
|
|
unrecognized response
|
2016-10-07 18:51:50 +03:00
|
|
|
local [working copy] changed file1 which other [merge rev] deleted
|
2015-12-01 00:43:55 +03:00
|
|
|
use (c)hanged version, (d)elete, or leave (u)nresolved? bar
|
2014-10-01 03:04:18 +04:00
|
|
|
unrecognized response
|
2016-10-07 18:51:50 +03:00
|
|
|
local [working copy] changed file1 which other [merge rev] deleted
|
2015-12-01 00:43:55 +03:00
|
|
|
use (c)hanged version, (d)elete, or leave (u)nresolved? d
|
2016-10-07 18:51:50 +03:00
|
|
|
other [merge rev] changed file2 which local [working copy] deleted
|
2019-09-19 06:39:33 +03:00
|
|
|
use (c)hanged version, leave (d)eleted, leave (u)nresolved, or input (r)enamed path? baz
|
2014-10-01 03:04:18 +04:00
|
|
|
unrecognized response
|
2016-10-07 18:51:50 +03:00
|
|
|
other [merge rev] changed file2 which local [working copy] deleted
|
2019-09-19 06:39:33 +03:00
|
|
|
use (c)hanged version, leave (d)eleted, leave (u)nresolved, or input (r)enamed path? c
|
2015-11-24 00:43:14 +03:00
|
|
|
merging file3
|
2018-10-22 22:45:46 +03:00
|
|
|
warning: 1 conflicts while merging file3! (edit, then use 'hg resolve --mark')
|
2015-11-26 01:25:33 +03:00
|
|
|
0 files updated, 1 files merged, 1 files removed, 1 files unresolved
|
2015-11-24 00:43:14 +03:00
|
|
|
use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
|
|
|
|
[1]
|
2010-09-12 13:52:13 +04:00
|
|
|
|
|
|
|
$ status
|
|
|
|
--- status ---
|
|
|
|
M file2
|
2015-11-24 00:43:14 +03:00
|
|
|
M file3
|
2010-09-12 13:52:13 +04:00
|
|
|
R file1
|
2015-11-24 00:45:56 +03:00
|
|
|
--- resolve --list ---
|
2015-11-26 01:25:33 +03:00
|
|
|
R file1
|
|
|
|
R file2
|
2015-11-24 00:45:56 +03:00
|
|
|
U file3
|
2015-11-26 01:26:46 +03:00
|
|
|
--- debugmergestate ---
|
|
|
|
* version 2 records
|
|
|
|
local: 13910f48cf7bdb2a0ba6e24b4900e4fdd5739dd4
|
|
|
|
other: 10f9a0a634e82080907e62f075ab119cbc565ea6
|
2016-10-07 18:51:50 +03:00
|
|
|
labels:
|
|
|
|
local: working copy
|
|
|
|
other: merge rev
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file1 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-11-26 01:25:33 +03:00
|
|
|
file: file1 (record type "C", state "r", hash 60b27f004e454aca81b0480209cce5081ec52390)
|
|
|
|
local path: file1 (flags "")
|
|
|
|
ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
|
|
|
|
other path: file1 (node null)
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file2 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-11-26 01:25:33 +03:00
|
|
|
file: file2 (record type "C", state "r", hash null)
|
|
|
|
local path: file2 (flags "")
|
|
|
|
ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
|
|
|
|
other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file3 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-11-26 01:26:46 +03:00
|
|
|
file: file3 (record type "F", state "u", hash d5b0a58bc47161b1b8a831084b366f757c4f0b11)
|
|
|
|
local path: file3 (flags "")
|
|
|
|
ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
|
|
|
|
other path: file3 (node a2644c43e210356772c7772a8674544a62e06beb)
|
2010-09-12 13:52:13 +04:00
|
|
|
*** file1 does not exist
|
|
|
|
--- file2 ---
|
|
|
|
2
|
|
|
|
changed
|
2015-11-24 00:43:14 +03:00
|
|
|
--- file3 ---
|
|
|
|
3
|
2016-10-07 18:51:50 +03:00
|
|
|
<<<<<<< working copy: 13910f48cf7b - test: changed file1, removed file2, chan...
|
2015-11-24 00:43:14 +03:00
|
|
|
changed2
|
|
|
|
=======
|
|
|
|
changed1
|
2016-11-20 02:41:37 +03:00
|
|
|
>>>>>>> merge rev: 10f9a0a634e8 - test: removed file1, changed file2, chan...
|
2010-09-12 13:52:13 +04:00
|
|
|
|
|
|
|
|
|
|
|
Interactive merge with not enough input:
|
|
|
|
|
|
|
|
$ hg co -C
|
2015-11-24 00:43:14 +03:00
|
|
|
2 files updated, 0 files merged, 1 files removed, 0 files unresolved
|
2017-06-06 19:47:39 +03:00
|
|
|
updated to "13910f48cf7b: changed file1, removed file2, changed file3"
|
2016-02-02 17:49:02 +03:00
|
|
|
1 other heads for branch "default"
|
2010-09-12 13:52:13 +04:00
|
|
|
|
2010-09-22 01:00:02 +04:00
|
|
|
$ hg merge --config ui.interactive=true <<EOF
|
2010-09-12 13:52:13 +04:00
|
|
|
> d
|
|
|
|
> EOF
|
2016-10-07 18:51:50 +03:00
|
|
|
local [working copy] changed file1 which other [merge rev] deleted
|
2015-12-01 00:43:55 +03:00
|
|
|
use (c)hanged version, (d)elete, or leave (u)nresolved? d
|
2016-10-07 18:51:50 +03:00
|
|
|
other [merge rev] changed file2 which local [working copy] deleted
|
2019-09-19 06:39:33 +03:00
|
|
|
use (c)hanged version, leave (d)eleted, leave (u)nresolved, or input (r)enamed path?
|
2015-11-26 01:25:33 +03:00
|
|
|
merging file3
|
2018-10-22 22:45:46 +03:00
|
|
|
warning: 1 conflicts while merging file3! (edit, then use 'hg resolve --mark')
|
2015-11-26 01:25:33 +03:00
|
|
|
0 files updated, 0 files merged, 1 files removed, 2 files unresolved
|
|
|
|
use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
|
|
|
|
[1]
|
2010-09-12 13:52:13 +04:00
|
|
|
|
|
|
|
$ status
|
|
|
|
--- status ---
|
2015-11-26 01:25:33 +03:00
|
|
|
M file2
|
|
|
|
M file3
|
|
|
|
R file1
|
|
|
|
--- resolve --list ---
|
|
|
|
R file1
|
|
|
|
U file2
|
|
|
|
U file3
|
|
|
|
--- debugmergestate ---
|
|
|
|
* version 2 records
|
|
|
|
local: 13910f48cf7bdb2a0ba6e24b4900e4fdd5739dd4
|
|
|
|
other: 10f9a0a634e82080907e62f075ab119cbc565ea6
|
2016-10-07 18:51:50 +03:00
|
|
|
labels:
|
|
|
|
local: working copy
|
|
|
|
other: merge rev
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file1 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-11-26 01:25:33 +03:00
|
|
|
file: file1 (record type "C", state "r", hash 60b27f004e454aca81b0480209cce5081ec52390)
|
|
|
|
local path: file1 (flags "")
|
|
|
|
ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
|
|
|
|
other path: file1 (node null)
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file2 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-11-26 01:25:33 +03:00
|
|
|
file: file2 (record type "C", state "u", hash null)
|
|
|
|
local path: file2 (flags "")
|
|
|
|
ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
|
|
|
|
other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file3 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-11-26 01:25:33 +03:00
|
|
|
file: file3 (record type "F", state "u", hash d5b0a58bc47161b1b8a831084b366f757c4f0b11)
|
|
|
|
local path: file3 (flags "")
|
|
|
|
ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
|
|
|
|
other path: file3 (node a2644c43e210356772c7772a8674544a62e06beb)
|
|
|
|
*** file1 does not exist
|
|
|
|
--- file2 ---
|
|
|
|
2
|
|
|
|
changed
|
|
|
|
--- file3 ---
|
|
|
|
3
|
2016-10-07 18:51:50 +03:00
|
|
|
<<<<<<< working copy: 13910f48cf7b - test: changed file1, removed file2, chan...
|
2015-11-26 01:25:33 +03:00
|
|
|
changed2
|
|
|
|
=======
|
|
|
|
changed1
|
2016-11-20 02:41:37 +03:00
|
|
|
>>>>>>> merge rev: 10f9a0a634e8 - test: removed file1, changed file2, chan...
|
2015-11-26 01:25:33 +03:00
|
|
|
|
|
|
|
Choose local versions of files
|
|
|
|
|
|
|
|
$ hg co -C
|
|
|
|
2 files updated, 0 files merged, 1 files removed, 0 files unresolved
|
2017-06-06 19:47:39 +03:00
|
|
|
updated to "13910f48cf7b: changed file1, removed file2, changed file3"
|
2016-02-02 17:49:02 +03:00
|
|
|
1 other heads for branch "default"
|
2015-11-26 01:25:33 +03:00
|
|
|
|
|
|
|
$ hg merge --tool :local
|
|
|
|
0 files updated, 3 files merged, 0 files removed, 0 files unresolved
|
|
|
|
(branch merge, don't forget to commit)
|
|
|
|
$ status 2>&1 | tee $TESTTMP/local.status
|
|
|
|
--- status ---
|
2011-11-16 06:45:14 +04:00
|
|
|
file2: * (glob)
|
2015-11-26 01:25:33 +03:00
|
|
|
M file3
|
2010-09-12 13:52:13 +04:00
|
|
|
C file1
|
2015-11-24 00:45:56 +03:00
|
|
|
--- resolve --list ---
|
2015-11-26 01:25:33 +03:00
|
|
|
R file1
|
|
|
|
R file2
|
|
|
|
R file3
|
2015-11-26 01:26:46 +03:00
|
|
|
--- debugmergestate ---
|
2015-11-26 01:25:33 +03:00
|
|
|
* version 2 records
|
|
|
|
local: 13910f48cf7bdb2a0ba6e24b4900e4fdd5739dd4
|
|
|
|
other: 10f9a0a634e82080907e62f075ab119cbc565ea6
|
2016-10-07 18:51:50 +03:00
|
|
|
labels:
|
|
|
|
local: working copy
|
|
|
|
other: merge rev
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file1 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-11-26 01:25:33 +03:00
|
|
|
file: file1 (record type "C", state "r", hash 60b27f004e454aca81b0480209cce5081ec52390)
|
|
|
|
local path: file1 (flags "")
|
|
|
|
ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
|
|
|
|
other path: file1 (node null)
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file2 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-11-26 01:25:33 +03:00
|
|
|
file: file2 (record type "C", state "r", hash null)
|
|
|
|
local path: file2 (flags "")
|
|
|
|
ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
|
|
|
|
other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file3 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-11-26 01:25:33 +03:00
|
|
|
file: file3 (record type "F", state "r", hash d5b0a58bc47161b1b8a831084b366f757c4f0b11)
|
|
|
|
local path: file3 (flags "")
|
|
|
|
ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
|
|
|
|
other path: file3 (node a2644c43e210356772c7772a8674544a62e06beb)
|
2010-09-12 13:52:13 +04:00
|
|
|
--- file1 ---
|
|
|
|
1
|
|
|
|
changed
|
|
|
|
*** file2 does not exist
|
2015-11-24 00:43:14 +03:00
|
|
|
--- file3 ---
|
|
|
|
3
|
|
|
|
changed2
|
2010-09-12 13:52:13 +04:00
|
|
|
|
2015-11-26 01:25:33 +03:00
|
|
|
Choose other versions of files
|
|
|
|
|
|
|
|
$ hg co -C
|
|
|
|
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
2017-06-06 19:47:39 +03:00
|
|
|
updated to "13910f48cf7b: changed file1, removed file2, changed file3"
|
2016-02-02 17:49:02 +03:00
|
|
|
1 other heads for branch "default"
|
2015-11-26 01:25:33 +03:00
|
|
|
|
|
|
|
$ hg merge --tool :other
|
|
|
|
0 files updated, 2 files merged, 1 files removed, 0 files unresolved
|
|
|
|
(branch merge, don't forget to commit)
|
|
|
|
$ status 2>&1 | tee $TESTTMP/other.status
|
|
|
|
--- status ---
|
|
|
|
M file2
|
|
|
|
M file3
|
|
|
|
R file1
|
|
|
|
--- resolve --list ---
|
|
|
|
R file1
|
|
|
|
R file2
|
|
|
|
R file3
|
|
|
|
--- debugmergestate ---
|
|
|
|
* version 2 records
|
|
|
|
local: 13910f48cf7bdb2a0ba6e24b4900e4fdd5739dd4
|
|
|
|
other: 10f9a0a634e82080907e62f075ab119cbc565ea6
|
2016-10-07 18:51:50 +03:00
|
|
|
labels:
|
|
|
|
local: working copy
|
|
|
|
other: merge rev
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file1 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-11-26 01:25:33 +03:00
|
|
|
file: file1 (record type "C", state "r", hash 60b27f004e454aca81b0480209cce5081ec52390)
|
|
|
|
local path: file1 (flags "")
|
|
|
|
ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
|
|
|
|
other path: file1 (node null)
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file2 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-11-26 01:25:33 +03:00
|
|
|
file: file2 (record type "C", state "r", hash null)
|
|
|
|
local path: file2 (flags "")
|
|
|
|
ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
|
|
|
|
other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file3 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-11-26 01:25:33 +03:00
|
|
|
file: file3 (record type "F", state "r", hash d5b0a58bc47161b1b8a831084b366f757c4f0b11)
|
|
|
|
local path: file3 (flags "")
|
|
|
|
ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
|
|
|
|
other path: file3 (node a2644c43e210356772c7772a8674544a62e06beb)
|
|
|
|
*** file1 does not exist
|
|
|
|
--- file2 ---
|
|
|
|
2
|
|
|
|
changed
|
|
|
|
--- file3 ---
|
|
|
|
3
|
|
|
|
changed1
|
|
|
|
|
|
|
|
Fail
|
|
|
|
|
|
|
|
$ hg co -C
|
|
|
|
2 files updated, 0 files merged, 1 files removed, 0 files unresolved
|
2017-06-06 19:47:39 +03:00
|
|
|
updated to "13910f48cf7b: changed file1, removed file2, changed file3"
|
2016-02-02 17:49:02 +03:00
|
|
|
1 other heads for branch "default"
|
2015-11-26 01:25:33 +03:00
|
|
|
|
|
|
|
$ hg merge --tool :fail
|
|
|
|
0 files updated, 0 files merged, 0 files removed, 3 files unresolved
|
|
|
|
use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
|
|
|
|
[1]
|
|
|
|
$ status 2>&1 | tee $TESTTMP/fail.status
|
|
|
|
--- status ---
|
|
|
|
M file2
|
|
|
|
M file3
|
|
|
|
C file1
|
|
|
|
--- resolve --list ---
|
|
|
|
U file1
|
|
|
|
U file2
|
|
|
|
U file3
|
|
|
|
--- debugmergestate ---
|
|
|
|
* version 2 records
|
|
|
|
local: 13910f48cf7bdb2a0ba6e24b4900e4fdd5739dd4
|
|
|
|
other: 10f9a0a634e82080907e62f075ab119cbc565ea6
|
2016-10-07 18:51:50 +03:00
|
|
|
labels:
|
|
|
|
local: working copy
|
|
|
|
other: merge rev
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file1 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-11-26 01:25:33 +03:00
|
|
|
file: file1 (record type "C", state "u", hash 60b27f004e454aca81b0480209cce5081ec52390)
|
|
|
|
local path: file1 (flags "")
|
|
|
|
ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
|
|
|
|
other path: file1 (node null)
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file2 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-11-26 01:25:33 +03:00
|
|
|
file: file2 (record type "C", state "u", hash null)
|
|
|
|
local path: file2 (flags "")
|
|
|
|
ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
|
|
|
|
other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file3 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-11-26 01:25:33 +03:00
|
|
|
file: file3 (record type "F", state "u", hash d5b0a58bc47161b1b8a831084b366f757c4f0b11)
|
|
|
|
local path: file3 (flags "")
|
|
|
|
ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
|
|
|
|
other path: file3 (node a2644c43e210356772c7772a8674544a62e06beb)
|
|
|
|
--- file1 ---
|
|
|
|
1
|
|
|
|
changed
|
|
|
|
--- file2 ---
|
|
|
|
2
|
|
|
|
changed
|
|
|
|
--- file3 ---
|
|
|
|
3
|
|
|
|
changed2
|
|
|
|
|
|
|
|
Force prompts with no input (should be similar to :fail)
|
|
|
|
|
|
|
|
$ hg co -C
|
|
|
|
1 files updated, 0 files merged, 1 files removed, 0 files unresolved
|
2017-06-06 19:47:39 +03:00
|
|
|
updated to "13910f48cf7b: changed file1, removed file2, changed file3"
|
2016-02-02 17:49:02 +03:00
|
|
|
1 other heads for branch "default"
|
2015-11-26 01:25:33 +03:00
|
|
|
|
|
|
|
$ hg merge --config ui.interactive=True --tool :prompt
|
2016-10-07 18:51:50 +03:00
|
|
|
local [working copy] changed file1 which other [merge rev] deleted
|
2015-12-01 00:43:55 +03:00
|
|
|
use (c)hanged version, (d)elete, or leave (u)nresolved?
|
2016-10-07 18:51:50 +03:00
|
|
|
other [merge rev] changed file2 which local [working copy] deleted
|
2019-09-19 06:39:33 +03:00
|
|
|
use (c)hanged version, leave (d)eleted, leave (u)nresolved, or input (r)enamed path?
|
2017-05-12 21:28:36 +03:00
|
|
|
keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved for file3?
|
2015-11-26 01:25:33 +03:00
|
|
|
0 files updated, 0 files merged, 0 files removed, 3 files unresolved
|
|
|
|
use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
|
|
|
|
[1]
|
|
|
|
$ status 2>&1 | tee $TESTTMP/prompt.status
|
|
|
|
--- status ---
|
|
|
|
M file2
|
|
|
|
M file3
|
|
|
|
C file1
|
|
|
|
--- resolve --list ---
|
|
|
|
U file1
|
|
|
|
U file2
|
|
|
|
U file3
|
|
|
|
--- debugmergestate ---
|
|
|
|
* version 2 records
|
|
|
|
local: 13910f48cf7bdb2a0ba6e24b4900e4fdd5739dd4
|
|
|
|
other: 10f9a0a634e82080907e62f075ab119cbc565ea6
|
2016-10-07 18:51:50 +03:00
|
|
|
labels:
|
|
|
|
local: working copy
|
|
|
|
other: merge rev
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file1 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-11-26 01:25:33 +03:00
|
|
|
file: file1 (record type "C", state "u", hash 60b27f004e454aca81b0480209cce5081ec52390)
|
|
|
|
local path: file1 (flags "")
|
|
|
|
ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
|
|
|
|
other path: file1 (node null)
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file2 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-11-26 01:25:33 +03:00
|
|
|
file: file2 (record type "C", state "u", hash null)
|
|
|
|
local path: file2 (flags "")
|
|
|
|
ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
|
|
|
|
other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file3 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-11-26 01:25:33 +03:00
|
|
|
file: file3 (record type "F", state "u", hash d5b0a58bc47161b1b8a831084b366f757c4f0b11)
|
|
|
|
local path: file3 (flags "")
|
|
|
|
ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
|
|
|
|
other path: file3 (node a2644c43e210356772c7772a8674544a62e06beb)
|
|
|
|
--- file1 ---
|
|
|
|
1
|
|
|
|
changed
|
|
|
|
--- file2 ---
|
|
|
|
2
|
|
|
|
changed
|
|
|
|
--- file3 ---
|
|
|
|
3
|
|
|
|
changed2
|
2015-12-28 02:24:48 +03:00
|
|
|
$ cmp $TESTTMP/fail.status $TESTTMP/prompt.status || diff -U8 $TESTTMP/fail.status $TESTTMP/prompt.status
|
2015-11-26 01:25:33 +03:00
|
|
|
|
|
|
|
|
|
|
|
Force prompts
|
|
|
|
|
|
|
|
$ hg co -C
|
|
|
|
1 files updated, 0 files merged, 1 files removed, 0 files unresolved
|
2017-06-06 19:47:39 +03:00
|
|
|
updated to "13910f48cf7b: changed file1, removed file2, changed file3"
|
2016-02-02 17:49:02 +03:00
|
|
|
1 other heads for branch "default"
|
2015-11-26 01:25:33 +03:00
|
|
|
|
|
|
|
$ hg merge --tool :prompt
|
2016-10-07 18:51:50 +03:00
|
|
|
local [working copy] changed file1 which other [merge rev] deleted
|
2015-12-23 23:51:45 +03:00
|
|
|
use (c)hanged version, (d)elete, or leave (u)nresolved? u
|
2016-10-07 18:51:50 +03:00
|
|
|
other [merge rev] changed file2 which local [working copy] deleted
|
2019-09-19 06:39:33 +03:00
|
|
|
use (c)hanged version, leave (d)eleted, leave (u)nresolved, or input (r)enamed path? u
|
2017-05-12 21:28:36 +03:00
|
|
|
keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved for file3? u
|
2015-12-23 23:51:45 +03:00
|
|
|
0 files updated, 0 files merged, 0 files removed, 3 files unresolved
|
2015-12-01 20:48:38 +03:00
|
|
|
use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
|
|
|
|
[1]
|
2015-11-26 01:25:33 +03:00
|
|
|
$ status
|
|
|
|
--- status ---
|
|
|
|
M file2
|
|
|
|
M file3
|
|
|
|
C file1
|
|
|
|
--- resolve --list ---
|
2015-12-23 23:51:45 +03:00
|
|
|
U file1
|
|
|
|
U file2
|
2015-12-01 20:48:38 +03:00
|
|
|
U file3
|
2015-11-26 01:25:33 +03:00
|
|
|
--- debugmergestate ---
|
|
|
|
* version 2 records
|
|
|
|
local: 13910f48cf7bdb2a0ba6e24b4900e4fdd5739dd4
|
|
|
|
other: 10f9a0a634e82080907e62f075ab119cbc565ea6
|
2016-10-07 18:51:50 +03:00
|
|
|
labels:
|
|
|
|
local: working copy
|
|
|
|
other: merge rev
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file1 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-12-23 23:51:45 +03:00
|
|
|
file: file1 (record type "C", state "u", hash 60b27f004e454aca81b0480209cce5081ec52390)
|
2015-11-26 01:25:33 +03:00
|
|
|
local path: file1 (flags "")
|
|
|
|
ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
|
|
|
|
other path: file1 (node null)
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file2 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-12-23 23:51:45 +03:00
|
|
|
file: file2 (record type "C", state "u", hash null)
|
2015-11-26 01:25:33 +03:00
|
|
|
local path: file2 (flags "")
|
|
|
|
ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
|
|
|
|
other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file3 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-12-01 20:48:38 +03:00
|
|
|
file: file3 (record type "F", state "u", hash d5b0a58bc47161b1b8a831084b366f757c4f0b11)
|
2015-11-26 01:25:33 +03:00
|
|
|
local path: file3 (flags "")
|
|
|
|
ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
|
|
|
|
other path: file3 (node a2644c43e210356772c7772a8674544a62e06beb)
|
|
|
|
--- file1 ---
|
|
|
|
1
|
|
|
|
changed
|
|
|
|
--- file2 ---
|
|
|
|
2
|
|
|
|
changed
|
|
|
|
--- file3 ---
|
|
|
|
3
|
|
|
|
changed2
|
|
|
|
|
|
|
|
Choose to merge all files
|
|
|
|
|
|
|
|
$ hg co -C
|
|
|
|
1 files updated, 0 files merged, 1 files removed, 0 files unresolved
|
2017-06-06 19:47:39 +03:00
|
|
|
updated to "13910f48cf7b: changed file1, removed file2, changed file3"
|
2016-02-02 17:49:02 +03:00
|
|
|
1 other heads for branch "default"
|
2015-11-26 01:25:33 +03:00
|
|
|
|
|
|
|
$ hg merge --tool :merge3
|
2016-10-07 18:51:50 +03:00
|
|
|
local [working copy] changed file1 which other [merge rev] deleted
|
2015-12-23 23:51:45 +03:00
|
|
|
use (c)hanged version, (d)elete, or leave (u)nresolved? u
|
2016-10-07 18:51:50 +03:00
|
|
|
other [merge rev] changed file2 which local [working copy] deleted
|
2019-09-19 06:39:33 +03:00
|
|
|
use (c)hanged version, leave (d)eleted, leave (u)nresolved, or input (r)enamed path? u
|
2015-11-26 01:25:33 +03:00
|
|
|
merging file3
|
2018-10-22 22:45:46 +03:00
|
|
|
warning: 1 conflicts while merging file3! (edit, then use 'hg resolve --mark')
|
2015-12-23 23:51:45 +03:00
|
|
|
0 files updated, 0 files merged, 0 files removed, 3 files unresolved
|
2015-11-26 01:25:33 +03:00
|
|
|
use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
|
|
|
|
[1]
|
|
|
|
$ status
|
|
|
|
--- status ---
|
|
|
|
M file2
|
|
|
|
M file3
|
|
|
|
C file1
|
|
|
|
--- resolve --list ---
|
2015-12-23 23:51:45 +03:00
|
|
|
U file1
|
|
|
|
U file2
|
2015-11-26 01:25:33 +03:00
|
|
|
U file3
|
|
|
|
--- debugmergestate ---
|
|
|
|
* version 2 records
|
|
|
|
local: 13910f48cf7bdb2a0ba6e24b4900e4fdd5739dd4
|
|
|
|
other: 10f9a0a634e82080907e62f075ab119cbc565ea6
|
2016-10-07 18:51:50 +03:00
|
|
|
labels:
|
|
|
|
local: working copy
|
|
|
|
other: merge rev
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file1 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-12-23 23:51:45 +03:00
|
|
|
file: file1 (record type "C", state "u", hash 60b27f004e454aca81b0480209cce5081ec52390)
|
2015-11-26 01:25:33 +03:00
|
|
|
local path: file1 (flags "")
|
|
|
|
ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
|
|
|
|
other path: file1 (node null)
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file2 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-12-23 23:51:45 +03:00
|
|
|
file: file2 (record type "C", state "u", hash null)
|
2015-11-26 01:25:33 +03:00
|
|
|
local path: file2 (flags "")
|
|
|
|
ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
|
|
|
|
other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file3 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-11-26 01:25:33 +03:00
|
|
|
file: file3 (record type "F", state "u", hash d5b0a58bc47161b1b8a831084b366f757c4f0b11)
|
|
|
|
local path: file3 (flags "")
|
|
|
|
ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
|
|
|
|
other path: file3 (node a2644c43e210356772c7772a8674544a62e06beb)
|
|
|
|
--- file1 ---
|
|
|
|
1
|
|
|
|
changed
|
|
|
|
--- file2 ---
|
|
|
|
2
|
|
|
|
changed
|
|
|
|
--- file3 ---
|
|
|
|
3
|
2016-10-07 18:51:50 +03:00
|
|
|
<<<<<<< working copy: 13910f48cf7b - test: changed file1, removed file2, chan...
|
2015-11-26 01:25:33 +03:00
|
|
|
changed2
|
|
|
|
||||||| base
|
|
|
|
=======
|
|
|
|
changed1
|
2016-11-20 02:41:37 +03:00
|
|
|
>>>>>>> merge rev: 10f9a0a634e8 - test: removed file1, changed file2, chan...
|
2015-11-26 01:25:33 +03:00
|
|
|
|
|
|
|
Exercise transitions between local, other, fail and prompt, and make sure the
|
|
|
|
dirstate stays consistent. (Compare with each other and to the above
|
|
|
|
invocations.)
|
|
|
|
|
|
|
|
$ testtransitions() {
|
|
|
|
> # this traversal order covers every transition
|
|
|
|
> tools="local other prompt local fail other local prompt other fail prompt fail local"
|
|
|
|
> lasttool="merge3"
|
|
|
|
> for tool in $tools; do
|
|
|
|
> echo "=== :$lasttool -> :$tool ==="
|
|
|
|
> ref="$TESTTMP/$tool.status"
|
|
|
|
> hg resolve --unmark --all
|
|
|
|
> hg resolve --tool ":$tool" --all --config ui.interactive=True
|
|
|
|
> status > "$TESTTMP/compare.status" 2>&1
|
|
|
|
> echo '--- diff of status ---'
|
2015-12-28 02:24:48 +03:00
|
|
|
> if cmp "$TESTTMP/$tool.status" "$TESTTMP/compare.status" || diff -U8 "$TESTTMP/$tool.status" "$TESTTMP/compare.status"; then
|
2015-11-26 01:25:33 +03:00
|
|
|
> echo '(status identical)'
|
|
|
|
> fi
|
|
|
|
> lasttool="$tool"
|
|
|
|
> echo
|
|
|
|
> done
|
|
|
|
> }
|
|
|
|
|
|
|
|
$ testtransitions
|
|
|
|
=== :merge3 -> :local ===
|
|
|
|
(no more unresolved files)
|
|
|
|
--- diff of status ---
|
|
|
|
(status identical)
|
|
|
|
|
|
|
|
=== :local -> :other ===
|
|
|
|
(no more unresolved files)
|
|
|
|
--- diff of status ---
|
|
|
|
(status identical)
|
|
|
|
|
|
|
|
=== :other -> :prompt ===
|
2016-10-07 18:51:50 +03:00
|
|
|
local [working copy] changed file1 which other [merge rev] deleted
|
2015-12-01 00:43:55 +03:00
|
|
|
use (c)hanged version, (d)elete, or leave (u)nresolved?
|
2016-10-07 18:51:50 +03:00
|
|
|
other [merge rev] changed file2 which local [working copy] deleted
|
2019-09-19 06:39:33 +03:00
|
|
|
use (c)hanged version, leave (d)eleted, leave (u)nresolved, or input (r)enamed path?
|
2017-05-12 21:28:36 +03:00
|
|
|
keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved for file3?
|
2015-11-26 01:25:33 +03:00
|
|
|
--- diff of status ---
|
|
|
|
(status identical)
|
|
|
|
|
|
|
|
=== :prompt -> :local ===
|
|
|
|
(no more unresolved files)
|
|
|
|
--- diff of status ---
|
|
|
|
(status identical)
|
|
|
|
|
|
|
|
=== :local -> :fail ===
|
|
|
|
--- diff of status ---
|
|
|
|
(status identical)
|
|
|
|
|
|
|
|
=== :fail -> :other ===
|
|
|
|
(no more unresolved files)
|
|
|
|
--- diff of status ---
|
|
|
|
(status identical)
|
|
|
|
|
|
|
|
=== :other -> :local ===
|
|
|
|
(no more unresolved files)
|
|
|
|
--- diff of status ---
|
|
|
|
(status identical)
|
|
|
|
|
|
|
|
=== :local -> :prompt ===
|
2016-10-07 18:51:50 +03:00
|
|
|
local [working copy] changed file1 which other [merge rev] deleted
|
2015-12-01 00:43:55 +03:00
|
|
|
use (c)hanged version, (d)elete, or leave (u)nresolved?
|
2016-10-07 18:51:50 +03:00
|
|
|
other [merge rev] changed file2 which local [working copy] deleted
|
2019-09-19 06:39:33 +03:00
|
|
|
use (c)hanged version, leave (d)eleted, leave (u)nresolved, or input (r)enamed path?
|
2017-05-12 21:28:36 +03:00
|
|
|
keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved for file3?
|
2015-11-26 01:25:33 +03:00
|
|
|
--- diff of status ---
|
|
|
|
(status identical)
|
|
|
|
|
|
|
|
=== :prompt -> :other ===
|
|
|
|
(no more unresolved files)
|
|
|
|
--- diff of status ---
|
|
|
|
(status identical)
|
|
|
|
|
|
|
|
=== :other -> :fail ===
|
|
|
|
--- diff of status ---
|
|
|
|
(status identical)
|
|
|
|
|
|
|
|
=== :fail -> :prompt ===
|
2016-10-07 18:51:50 +03:00
|
|
|
local [working copy] changed file1 which other [merge rev] deleted
|
2015-12-01 00:43:55 +03:00
|
|
|
use (c)hanged version, (d)elete, or leave (u)nresolved?
|
2016-10-07 18:51:50 +03:00
|
|
|
other [merge rev] changed file2 which local [working copy] deleted
|
2019-09-19 06:39:33 +03:00
|
|
|
use (c)hanged version, leave (d)eleted, leave (u)nresolved, or input (r)enamed path?
|
2017-05-12 21:28:36 +03:00
|
|
|
keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved for file3?
|
2015-11-26 01:25:33 +03:00
|
|
|
--- diff of status ---
|
|
|
|
(status identical)
|
|
|
|
|
|
|
|
=== :prompt -> :fail ===
|
|
|
|
--- diff of status ---
|
|
|
|
(status identical)
|
|
|
|
|
|
|
|
=== :fail -> :local ===
|
|
|
|
(no more unresolved files)
|
|
|
|
--- diff of status ---
|
|
|
|
(status identical)
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-11-02 23:25:15 +03:00
|
|
|
Non-interactive linear update
|
|
|
|
|
|
|
|
$ hg co -C 0
|
2015-11-24 00:43:14 +03:00
|
|
|
3 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
2015-11-02 23:25:15 +03:00
|
|
|
$ echo changed >> file1
|
|
|
|
$ hg rm file2
|
|
|
|
$ hg update 1 -y
|
2016-08-12 15:56:40 +03:00
|
|
|
local [working copy] changed file1 which other [destination] deleted
|
2015-12-23 23:51:45 +03:00
|
|
|
use (c)hanged version, (d)elete, or leave (u)nresolved? u
|
2016-08-12 15:56:40 +03:00
|
|
|
other [destination] changed file2 which local [working copy] deleted
|
2019-09-19 06:39:33 +03:00
|
|
|
use (c)hanged version, leave (d)eleted, leave (u)nresolved, or input (r)enamed path? u
|
2015-12-23 23:51:45 +03:00
|
|
|
1 files updated, 0 files merged, 0 files removed, 2 files unresolved
|
|
|
|
use 'hg resolve' to retry unresolved file merges
|
|
|
|
[1]
|
2015-11-02 23:25:15 +03:00
|
|
|
$ status
|
|
|
|
--- status ---
|
|
|
|
A file1
|
|
|
|
C file2
|
2015-11-24 00:43:14 +03:00
|
|
|
C file3
|
2015-11-24 00:45:56 +03:00
|
|
|
--- resolve --list ---
|
2015-12-23 23:51:45 +03:00
|
|
|
U file1
|
|
|
|
U file2
|
2015-11-26 01:26:46 +03:00
|
|
|
--- debugmergestate ---
|
2015-11-26 01:25:33 +03:00
|
|
|
* version 2 records
|
|
|
|
local: ab57bf49aa276a22d35a473592d4c34b5abc3eff
|
|
|
|
other: 10f9a0a634e82080907e62f075ab119cbc565ea6
|
2016-03-20 04:37:10 +03:00
|
|
|
labels:
|
|
|
|
local: working copy
|
|
|
|
other: destination
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file1 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-12-23 23:51:45 +03:00
|
|
|
file: file1 (record type "C", state "u", hash 60b27f004e454aca81b0480209cce5081ec52390)
|
2015-11-26 01:25:33 +03:00
|
|
|
local path: file1 (flags "")
|
|
|
|
ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
|
|
|
|
other path: file1 (node null)
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file2 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-12-23 23:51:45 +03:00
|
|
|
file: file2 (record type "C", state "u", hash null)
|
2015-11-26 01:25:33 +03:00
|
|
|
local path: file2 (flags "")
|
|
|
|
ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
|
|
|
|
other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
|
2015-11-02 23:25:15 +03:00
|
|
|
--- file1 ---
|
|
|
|
1
|
|
|
|
changed
|
|
|
|
--- file2 ---
|
|
|
|
2
|
|
|
|
changed
|
2015-11-24 00:43:14 +03:00
|
|
|
--- file3 ---
|
|
|
|
3
|
|
|
|
changed1
|
2015-11-26 01:25:33 +03:00
|
|
|
|
|
|
|
Choose local versions of files
|
|
|
|
|
|
|
|
$ hg co -C 0
|
|
|
|
3 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
|
|
|
$ echo changed >> file1
|
|
|
|
$ hg rm file2
|
|
|
|
$ hg update 1 --tool :local
|
|
|
|
1 files updated, 2 files merged, 0 files removed, 0 files unresolved
|
|
|
|
$ status 2>&1 | tee $TESTTMP/local.status
|
|
|
|
--- status ---
|
|
|
|
A file1
|
filesystem: implement fs.pendingchanges()
Summary:
dirstate.status can be thought of as three stages: 1) checking what
files have changed on disk, 2) adding nonnormal files (added, removed, copied,
merged), and 3) adding clean files. The current implementation ties these
together in one big pile.
As part of refactoring the working copy interface into clear working copy and
filesystem interfaces, this diff extracts the "check what files have changed on
disk" part into the filesystem class.
Note, this implements a walk function very similar to the one that exists in
dirstate. The difference is that dirstate.walk cares about everything that is in
the dirstate already, while the fs walk only cares about what files are
different from the pristine tree, so it's easier to reason about.
Note: This diff does not update the fsmonitor or eden dirstate implementations.
That means those tests will break if I land this. I'm going to send two more diffs
to update their implementations, then I'll be sure to land them all at once.
Future cleanup:
- lookup resolution should be done inside the filesystem layer, since it's an
artifact of filesystem limitations.
- I'd like to get rid of ignore file special casing and have that just be part
of the matcher that is passed in. This might not be feasible though.
- I'd like to get rid of explicit file special casing and have the caller handle
that if needed.
- I'd like to remove the ability to list clean files in status. Most callers
don't need that capability, and a caller could compute that themselves if
needed.
Reviewed By: quark-zju
Differential Revision: D17099990
fbshipit-source-id: d7530e26f057d8fd38aaa36512fa398a543b23c2
2019-10-09 02:43:10 +03:00
|
|
|
C file2
|
2015-11-26 01:25:33 +03:00
|
|
|
C file3
|
|
|
|
--- resolve --list ---
|
|
|
|
R file1
|
|
|
|
R file2
|
|
|
|
--- debugmergestate ---
|
|
|
|
* version 2 records
|
|
|
|
local: ab57bf49aa276a22d35a473592d4c34b5abc3eff
|
|
|
|
other: 10f9a0a634e82080907e62f075ab119cbc565ea6
|
2016-03-20 04:37:10 +03:00
|
|
|
labels:
|
|
|
|
local: working copy
|
|
|
|
other: destination
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file1 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-11-26 01:25:33 +03:00
|
|
|
file: file1 (record type "C", state "r", hash 60b27f004e454aca81b0480209cce5081ec52390)
|
|
|
|
local path: file1 (flags "")
|
|
|
|
ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
|
|
|
|
other path: file1 (node null)
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file2 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-11-26 01:25:33 +03:00
|
|
|
file: file2 (record type "C", state "r", hash null)
|
|
|
|
local path: file2 (flags "")
|
|
|
|
ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
|
|
|
|
other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
|
|
|
|
--- file1 ---
|
|
|
|
1
|
|
|
|
changed
|
|
|
|
*** file2 does not exist
|
|
|
|
--- file3 ---
|
|
|
|
3
|
|
|
|
changed1
|
|
|
|
|
|
|
|
Choose other versions of files
|
|
|
|
|
|
|
|
$ hg co -C 0
|
|
|
|
3 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
|
|
|
$ echo changed >> file1
|
|
|
|
$ hg rm file2
|
|
|
|
$ hg update 1 --tool :other
|
|
|
|
1 files updated, 1 files merged, 1 files removed, 0 files unresolved
|
|
|
|
$ status 2>&1 | tee $TESTTMP/other.status
|
|
|
|
--- status ---
|
|
|
|
file1: * (glob)
|
|
|
|
C file2
|
|
|
|
C file3
|
|
|
|
--- resolve --list ---
|
|
|
|
R file1
|
|
|
|
R file2
|
|
|
|
--- debugmergestate ---
|
|
|
|
* version 2 records
|
|
|
|
local: ab57bf49aa276a22d35a473592d4c34b5abc3eff
|
|
|
|
other: 10f9a0a634e82080907e62f075ab119cbc565ea6
|
2016-03-20 04:37:10 +03:00
|
|
|
labels:
|
|
|
|
local: working copy
|
|
|
|
other: destination
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file1 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-11-26 01:25:33 +03:00
|
|
|
file: file1 (record type "C", state "r", hash 60b27f004e454aca81b0480209cce5081ec52390)
|
|
|
|
local path: file1 (flags "")
|
|
|
|
ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
|
|
|
|
other path: file1 (node null)
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file2 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-11-26 01:25:33 +03:00
|
|
|
file: file2 (record type "C", state "r", hash null)
|
|
|
|
local path: file2 (flags "")
|
|
|
|
ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
|
|
|
|
other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
|
|
|
|
*** file1 does not exist
|
|
|
|
--- file2 ---
|
|
|
|
2
|
|
|
|
changed
|
|
|
|
--- file3 ---
|
|
|
|
3
|
|
|
|
changed1
|
|
|
|
|
|
|
|
Fail
|
|
|
|
|
|
|
|
$ hg co -C 0
|
|
|
|
3 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
|
|
|
$ echo changed >> file1
|
|
|
|
$ hg rm file2
|
|
|
|
$ hg update 1 --tool :fail
|
|
|
|
1 files updated, 0 files merged, 0 files removed, 2 files unresolved
|
|
|
|
use 'hg resolve' to retry unresolved file merges
|
|
|
|
[1]
|
|
|
|
$ status 2>&1 | tee $TESTTMP/fail.status
|
|
|
|
--- status ---
|
|
|
|
A file1
|
|
|
|
C file2
|
|
|
|
C file3
|
|
|
|
--- resolve --list ---
|
|
|
|
U file1
|
|
|
|
U file2
|
|
|
|
--- debugmergestate ---
|
|
|
|
* version 2 records
|
|
|
|
local: ab57bf49aa276a22d35a473592d4c34b5abc3eff
|
|
|
|
other: 10f9a0a634e82080907e62f075ab119cbc565ea6
|
2016-03-20 04:37:10 +03:00
|
|
|
labels:
|
|
|
|
local: working copy
|
|
|
|
other: destination
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file1 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-11-26 01:25:33 +03:00
|
|
|
file: file1 (record type "C", state "u", hash 60b27f004e454aca81b0480209cce5081ec52390)
|
|
|
|
local path: file1 (flags "")
|
|
|
|
ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
|
|
|
|
other path: file1 (node null)
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file2 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-11-26 01:25:33 +03:00
|
|
|
file: file2 (record type "C", state "u", hash null)
|
|
|
|
local path: file2 (flags "")
|
|
|
|
ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
|
|
|
|
other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
|
|
|
|
--- file1 ---
|
|
|
|
1
|
|
|
|
changed
|
|
|
|
--- file2 ---
|
|
|
|
2
|
|
|
|
changed
|
|
|
|
--- file3 ---
|
|
|
|
3
|
|
|
|
changed1
|
|
|
|
|
|
|
|
Force prompts with no input
|
|
|
|
|
|
|
|
$ hg co -C 0
|
|
|
|
3 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
|
|
|
$ echo changed >> file1
|
|
|
|
$ hg rm file2
|
|
|
|
$ hg update 1 --config ui.interactive=True --tool :prompt
|
2016-08-12 15:56:40 +03:00
|
|
|
local [working copy] changed file1 which other [destination] deleted
|
2015-12-01 00:43:55 +03:00
|
|
|
use (c)hanged version, (d)elete, or leave (u)nresolved?
|
2016-08-12 15:56:40 +03:00
|
|
|
other [destination] changed file2 which local [working copy] deleted
|
2019-09-19 06:39:33 +03:00
|
|
|
use (c)hanged version, leave (d)eleted, leave (u)nresolved, or input (r)enamed path?
|
2015-11-26 01:25:33 +03:00
|
|
|
1 files updated, 0 files merged, 0 files removed, 2 files unresolved
|
|
|
|
use 'hg resolve' to retry unresolved file merges
|
|
|
|
[1]
|
|
|
|
$ status 2>&1 | tee $TESTTMP/prompt.status
|
|
|
|
--- status ---
|
|
|
|
A file1
|
|
|
|
C file2
|
|
|
|
C file3
|
|
|
|
--- resolve --list ---
|
|
|
|
U file1
|
|
|
|
U file2
|
|
|
|
--- debugmergestate ---
|
|
|
|
* version 2 records
|
|
|
|
local: ab57bf49aa276a22d35a473592d4c34b5abc3eff
|
|
|
|
other: 10f9a0a634e82080907e62f075ab119cbc565ea6
|
2016-03-20 04:37:10 +03:00
|
|
|
labels:
|
|
|
|
local: working copy
|
|
|
|
other: destination
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file1 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-11-26 01:25:33 +03:00
|
|
|
file: file1 (record type "C", state "u", hash 60b27f004e454aca81b0480209cce5081ec52390)
|
|
|
|
local path: file1 (flags "")
|
|
|
|
ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
|
|
|
|
other path: file1 (node null)
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file2 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-11-26 01:25:33 +03:00
|
|
|
file: file2 (record type "C", state "u", hash null)
|
|
|
|
local path: file2 (flags "")
|
|
|
|
ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
|
|
|
|
other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
|
|
|
|
--- file1 ---
|
|
|
|
1
|
|
|
|
changed
|
|
|
|
--- file2 ---
|
|
|
|
2
|
|
|
|
changed
|
|
|
|
--- file3 ---
|
|
|
|
3
|
|
|
|
changed1
|
2015-12-28 02:24:48 +03:00
|
|
|
$ cmp $TESTTMP/fail.status $TESTTMP/prompt.status || diff -U8 $TESTTMP/fail.status $TESTTMP/prompt.status
|
2015-11-26 01:25:33 +03:00
|
|
|
|
|
|
|
Choose to merge all files
|
|
|
|
|
|
|
|
$ hg co -C 0
|
|
|
|
3 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
|
|
|
$ echo changed >> file1
|
|
|
|
$ hg rm file2
|
|
|
|
$ hg update 1 --tool :merge3
|
2016-08-12 15:56:40 +03:00
|
|
|
local [working copy] changed file1 which other [destination] deleted
|
2015-12-23 23:51:45 +03:00
|
|
|
use (c)hanged version, (d)elete, or leave (u)nresolved? u
|
2016-08-12 15:56:40 +03:00
|
|
|
other [destination] changed file2 which local [working copy] deleted
|
2019-09-19 06:39:33 +03:00
|
|
|
use (c)hanged version, leave (d)eleted, leave (u)nresolved, or input (r)enamed path? u
|
2015-12-23 23:51:45 +03:00
|
|
|
1 files updated, 0 files merged, 0 files removed, 2 files unresolved
|
|
|
|
use 'hg resolve' to retry unresolved file merges
|
|
|
|
[1]
|
2015-11-26 01:25:33 +03:00
|
|
|
$ status
|
|
|
|
--- status ---
|
|
|
|
A file1
|
|
|
|
C file2
|
|
|
|
C file3
|
|
|
|
--- resolve --list ---
|
2015-12-23 23:51:45 +03:00
|
|
|
U file1
|
|
|
|
U file2
|
2015-11-26 01:25:33 +03:00
|
|
|
--- debugmergestate ---
|
|
|
|
* version 2 records
|
|
|
|
local: ab57bf49aa276a22d35a473592d4c34b5abc3eff
|
|
|
|
other: 10f9a0a634e82080907e62f075ab119cbc565ea6
|
2016-03-20 04:37:10 +03:00
|
|
|
labels:
|
|
|
|
local: working copy
|
|
|
|
other: destination
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file1 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-12-23 23:51:45 +03:00
|
|
|
file: file1 (record type "C", state "u", hash 60b27f004e454aca81b0480209cce5081ec52390)
|
2015-11-26 01:25:33 +03:00
|
|
|
local path: file1 (flags "")
|
|
|
|
ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
|
|
|
|
other path: file1 (node null)
|
2016-02-05 21:22:14 +03:00
|
|
|
file extras: file2 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
|
2015-12-23 23:51:45 +03:00
|
|
|
file: file2 (record type "C", state "u", hash null)
|
2015-11-26 01:25:33 +03:00
|
|
|
local path: file2 (flags "")
|
|
|
|
ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
|
|
|
|
other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
|
|
|
|
--- file1 ---
|
|
|
|
1
|
|
|
|
changed
|
|
|
|
--- file2 ---
|
|
|
|
2
|
|
|
|
changed
|
|
|
|
--- file3 ---
|
|
|
|
3
|
|
|
|
changed1
|
|
|
|
|
|
|
|
Test transitions between different merge tools
|
|
|
|
|
|
|
|
$ testtransitions
|
|
|
|
=== :merge3 -> :local ===
|
|
|
|
(no more unresolved files)
|
|
|
|
--- diff of status ---
|
|
|
|
(status identical)
|
|
|
|
|
|
|
|
=== :local -> :other ===
|
|
|
|
(no more unresolved files)
|
|
|
|
--- diff of status ---
|
|
|
|
(status identical)
|
|
|
|
|
|
|
|
=== :other -> :prompt ===
|
2016-08-12 15:56:40 +03:00
|
|
|
local [working copy] changed file1 which other [destination] deleted
|
2015-12-01 00:43:55 +03:00
|
|
|
use (c)hanged version, (d)elete, or leave (u)nresolved?
|
2016-08-12 15:56:40 +03:00
|
|
|
other [destination] changed file2 which local [working copy] deleted
|
2019-09-19 06:39:33 +03:00
|
|
|
use (c)hanged version, leave (d)eleted, leave (u)nresolved, or input (r)enamed path?
|
2015-11-26 01:25:33 +03:00
|
|
|
--- diff of status ---
|
|
|
|
(status identical)
|
|
|
|
|
|
|
|
=== :prompt -> :local ===
|
|
|
|
(no more unresolved files)
|
|
|
|
--- diff of status ---
|
|
|
|
(status identical)
|
|
|
|
|
|
|
|
=== :local -> :fail ===
|
|
|
|
--- diff of status ---
|
|
|
|
(status identical)
|
|
|
|
|
|
|
|
=== :fail -> :other ===
|
|
|
|
(no more unresolved files)
|
|
|
|
--- diff of status ---
|
|
|
|
(status identical)
|
|
|
|
|
|
|
|
=== :other -> :local ===
|
|
|
|
(no more unresolved files)
|
|
|
|
--- diff of status ---
|
|
|
|
(status identical)
|
|
|
|
|
|
|
|
=== :local -> :prompt ===
|
2016-08-12 15:56:40 +03:00
|
|
|
local [working copy] changed file1 which other [destination] deleted
|
2015-12-01 00:43:55 +03:00
|
|
|
use (c)hanged version, (d)elete, or leave (u)nresolved?
|
2016-08-12 15:56:40 +03:00
|
|
|
other [destination] changed file2 which local [working copy] deleted
|
2019-09-19 06:39:33 +03:00
|
|
|
use (c)hanged version, leave (d)eleted, leave (u)nresolved, or input (r)enamed path?
|
2015-11-26 01:25:33 +03:00
|
|
|
--- diff of status ---
|
|
|
|
(status identical)
|
|
|
|
|
|
|
|
=== :prompt -> :other ===
|
|
|
|
(no more unresolved files)
|
|
|
|
--- diff of status ---
|
|
|
|
(status identical)
|
|
|
|
|
|
|
|
=== :other -> :fail ===
|
|
|
|
--- diff of status ---
|
|
|
|
(status identical)
|
|
|
|
|
|
|
|
=== :fail -> :prompt ===
|
2016-08-12 15:56:40 +03:00
|
|
|
local [working copy] changed file1 which other [destination] deleted
|
2015-12-01 00:43:55 +03:00
|
|
|
use (c)hanged version, (d)elete, or leave (u)nresolved?
|
2016-08-12 15:56:40 +03:00
|
|
|
other [destination] changed file2 which local [working copy] deleted
|
2019-09-19 06:39:33 +03:00
|
|
|
use (c)hanged version, leave (d)eleted, leave (u)nresolved, or input (r)enamed path?
|
2015-11-26 01:25:33 +03:00
|
|
|
--- diff of status ---
|
|
|
|
(status identical)
|
|
|
|
|
|
|
|
=== :prompt -> :fail ===
|
|
|
|
--- diff of status ---
|
|
|
|
(status identical)
|
|
|
|
|
|
|
|
=== :fail -> :local ===
|
|
|
|
(no more unresolved files)
|
|
|
|
--- diff of status ---
|
|
|
|
(status identical)
|
|
|
|
|