annotate tests/test-amend-merge.t @ 5918:13c406d9912c stable

tests: add test-amend-merge.t with a simple merge amended by various commands
author Anton Shestakov <av6@dwimlabs.net>
date Sun, 09 May 2021 00:09:53 +0800
parents
children 1a8e86053adb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5918
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
1 This test amends a merge commit using various commands, including topics
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
2
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
3 $ . $TESTDIR/testlib/common.sh
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
4
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
5 $ cat >> $HGRCPATH << EOF
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
6 > [extensions]
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
7 > evolve =
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
8 > topic =
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
9 > EOF
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
10
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
11 $ hg init amending-a-merge
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
12 $ cd amending-a-merge
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
13
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
14 $ mkcommit root
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
15 $ mkcommit apple
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
16 $ hg up 'desc("root")'
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
17 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
18 $ mkcommit banana
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
19 created new head
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
20 (consider using topic for lightweight branches. See 'hg help topic')
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
21 $ hg up 'desc("apple")'
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
22 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
23 $ hg merge 'desc("banana")'
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
24 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
25 (branch merge, don't forget to commit)
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
26
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
27 $ hg ci -m merge
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
28 $ hg diff -r 'p1(.)' -r '.'
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
29 diff -r 88a060ab6523 -r c20705a6a8c4 banana
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
30 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
31 +++ b/banana Thu Jan 01 00:00:00 1970 +0000
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
32 @@ -0,0 +1,1 @@
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
33 +banana
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
34 $ hg diff -r 'p2(.)' -r '.'
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
35 diff -r d8c7baf0ca58 -r c20705a6a8c4 apple
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
36 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
37 +++ b/apple Thu Jan 01 00:00:00 1970 +0000
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
38 @@ -0,0 +1,1 @@
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
39 +apple
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
40
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
41 amend
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
42
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
43 $ hg amend -m 'merge, amend'
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
44 $ hg diff -r 'p1(.)' -r '.'
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
45 diff -r 88a060ab6523 -r 456753fae3cd banana
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
46 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
47 +++ b/banana Thu Jan 01 00:00:00 1970 +0000
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
48 @@ -0,0 +1,1 @@
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
49 +banana
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
50 $ hg diff -r 'p2(.)' -r '.'
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
51 diff -r d8c7baf0ca58 -r 456753fae3cd apple
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
52 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
53 +++ b/apple Thu Jan 01 00:00:00 1970 +0000
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
54 @@ -0,0 +1,1 @@
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
55 +apple
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
56
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
57 metaedit
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
58
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
59 $ hg metaedit -m 'merge, metaedit'
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
60 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
61 $ hg diff -r 'p1(.)' -r '.'
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
62 diff -r 88a060ab6523 -r 1528d42f3e83 banana
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
63 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
64 +++ b/banana Thu Jan 01 00:00:00 1970 +0000
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
65 @@ -0,0 +1,1 @@
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
66 +banana
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
67 $ hg diff -r 'p2(.)' -r '.'
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
68 diff -r d8c7baf0ca58 -r 1528d42f3e83 apple
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
69 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
70 +++ b/apple Thu Jan 01 00:00:00 1970 +0000
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
71 @@ -0,0 +1,1 @@
13c406d9912c tests: add test-amend-merge.t with a simple merge amended by various commands
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
72 +apple