annotate tests/test-fixup.t @ 6198:cc80747ef3c8

evolve: support hg continue
author Luke Granger-Brown <hg@lukegb.com>
date Mon, 14 Mar 2022 18:00:00 +0000
parents 4a837da84f5f
children d18e16b9b793
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6130
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
1 ==========================
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
2 Testing `hg fixup` command
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
3 ==========================
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
4
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
5 $ . $TESTDIR/testlib/common.sh
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
6
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
7 $ cat >> $HGRCPATH <<EOF
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
8 > [extensions]
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
9 > rebase =
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
10 > evolve =
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
11 > [diff]
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
12 > git = 1
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
13 > EOF
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
14
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
15 $ hg help fixup
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
16 hg fixup [OPTION]... [-r] REV
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
17
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
18 aliases: fix-up
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
19
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
20 add working directory changes to an arbitrary revision
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
21
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
22 A new changeset will be created, superseding the one specified. The new
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
23 changeset will combine working directory changes with the changes in the
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
24 target revision.
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
25
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
26 This operation requires the working directory changes to be relocated onto
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
27 the target revision, which might result in merge conflicts.
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
28
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
29 If fixup is interrupted to manually resolve a conflict, it can be
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
30 continued with --continue/-c, or aborted with --abort.
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
31
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
32 Note that this command is fairly new and its behavior is still
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
33 experimental. For example, the working copy will be left on a temporary,
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
34 obsolete commit containing the fixed-up changes after the operation. This
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
35 might change in the future.
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
36
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
37 Returns 0 on success, 1 if nothing changed.
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
38
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
39 options:
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
40
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
41 -r --rev REV revision to amend
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
42 -c --continue continue an interrupted fixup
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
43 --abort abort an interrupted fixup
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
44
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
45 (some details hidden, use --verbose to show complete help)
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
46
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
47 Simple cases
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
48 ------------
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
49
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
50 $ hg init simple
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
51 $ cd simple
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
52 $ mkcommit foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
53 $ mkcommit bar
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
54 $ mkcommit baz
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
55
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
56 amending the middle of the stack
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
57 --------------------------------
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
58
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
59 $ echo 'hookah bar' > bar
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
60 $ hg fixup -r 'desc(bar)'
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
61 1 new orphan changesets
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
62
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
63 $ hg diff -c tip
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
64 diff --git a/bar b/bar
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
65 new file mode 100644
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
66 --- /dev/null
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
67 +++ b/bar
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
68 @@ -0,0 +1,1 @@
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
69 +hookah bar
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
70
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
71 $ hg glog
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
72 o 5:2eec5320cfc7 bar
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
73 | () draft
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
74 | @ 3:fd2f632e47ab temporary fixup commit
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
75 | | () draft
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
76 | * 2:a425495a8e64 baz
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
77 | | () draft orphan
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
78 | x 1:c0c7cf58edc5 bar
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
79 |/ () draft
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
80 o 0:e63c23eaa88a foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
81 () draft
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
82
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
83 $ hg glog --hidden
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
84 o 5:2eec5320cfc7 bar
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
85 | () draft
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
86 | x 4:4869c1db2884 temporary fixup commit
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
87 | | () draft
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
88 | | @ 3:fd2f632e47ab temporary fixup commit
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
89 | | | () draft
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
90 | | * 2:a425495a8e64 baz
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
91 | |/ () draft orphan
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
92 | x 1:c0c7cf58edc5 bar
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
93 |/ () draft
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
94 o 0:e63c23eaa88a foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
95 () draft
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
96
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
97 $ hg evolve
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
98 update:[5] bar
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
99 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
100 working directory is now at 2eec5320cfc7
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
101
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
102 $ hg evolve
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
103 move:[2] baz
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
104 atop:[5] bar
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
105
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
106 $ hg glog
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
107 o 6:eb1755d9f810 baz
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
108 | () draft
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
109 @ 5:2eec5320cfc7 bar
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
110 | () draft
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
111 o 0:e63c23eaa88a foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
112 () draft
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
113
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
114 amending working directory parent in secret phase
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
115 -------------------------------------------------
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
116
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
117 $ hg up -r 'desc(baz)'
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
118 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
119 $ hg phase --secret --force -r .
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
120 $ echo buzz >> baz
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
121 $ hg fix-up -r .
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
122
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
123 $ hg evolve
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
124 update:[9] baz
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
125 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
126 working directory is now at 12b5e442244f
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
127 $ hg glog
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
128 @ 9:12b5e442244f baz
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
129 | () secret
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
130 o 5:2eec5320cfc7 bar
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
131 | () draft
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
132 o 0:e63c23eaa88a foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
133 () draft
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
134
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
135 testing --abort/--continue
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
136 --------------------------
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
137
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
138 $ hg up -r 'desc(foo)'
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
139 0 files updated, 0 files merged, 2 files removed, 0 files unresolved
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
140 $ echo 'update foo' > foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
141 $ hg ci -m 'update foo'
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
142 created new head
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
143 $ hg up -r 'desc(baz)'
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
144 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
145
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
146 $ hg glog
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
147 o 10:c90c517f86b3 update foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
148 | () draft
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
149 | @ 9:12b5e442244f baz
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
150 | | () secret
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
151 | o 5:2eec5320cfc7 bar
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
152 |/ () draft
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
153 o 0:e63c23eaa88a foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
154 () draft
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
155
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
156 testing --abort flag
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
157
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
158 $ echo 'update foo again' >> foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
159
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
160 $ hg fixup -r 'desc("update foo")'
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
161 merging foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
162 warning: conflicts while merging foo! (edit, then use 'hg resolve --mark')
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
163 unresolved merge conflicts
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
164 (see 'hg help evolve.interrupted')
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
165 [240]
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
166
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
167 $ hg diff
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
168 diff --git a/foo b/foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
169 --- a/foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
170 +++ b/foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
171 @@ -1,1 +1,6 @@
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
172 +<<<<<<< destination: c90c517f86b3 - test: update foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
173 update foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
174 +=======
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
175 +foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
176 +update foo again
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
177 +>>>>>>> evolving: 1c9958e73c2d - test: temporary fixup commit
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
178
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
179 $ hg fixup --abort
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
180 fixup aborted
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
181 working directory is now at 12b5e442244f
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
182
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
183 $ hg diff
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
184 diff --git a/foo b/foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
185 --- a/foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
186 +++ b/foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
187 @@ -1,1 +1,2 @@
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
188 foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
189 +update foo again
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
190
6196
4a837da84f5f fixup: allow to be aborted using hg abort
Anton Shestakov <av6@dwimlabs.net>
parents: 6195
diff changeset
191 testing abort command
4a837da84f5f fixup: allow to be aborted using hg abort
Anton Shestakov <av6@dwimlabs.net>
parents: 6195
diff changeset
192
4a837da84f5f fixup: allow to be aborted using hg abort
Anton Shestakov <av6@dwimlabs.net>
parents: 6195
diff changeset
193 $ hg fixup -r 'desc("update foo")'
4a837da84f5f fixup: allow to be aborted using hg abort
Anton Shestakov <av6@dwimlabs.net>
parents: 6195
diff changeset
194 merging foo
4a837da84f5f fixup: allow to be aborted using hg abort
Anton Shestakov <av6@dwimlabs.net>
parents: 6195
diff changeset
195 warning: conflicts while merging foo! (edit, then use 'hg resolve --mark')
4a837da84f5f fixup: allow to be aborted using hg abort
Anton Shestakov <av6@dwimlabs.net>
parents: 6195
diff changeset
196 unresolved merge conflicts
4a837da84f5f fixup: allow to be aborted using hg abort
Anton Shestakov <av6@dwimlabs.net>
parents: 6195
diff changeset
197 (see 'hg help evolve.interrupted')
4a837da84f5f fixup: allow to be aborted using hg abort
Anton Shestakov <av6@dwimlabs.net>
parents: 6195
diff changeset
198 [240]
4a837da84f5f fixup: allow to be aborted using hg abort
Anton Shestakov <av6@dwimlabs.net>
parents: 6195
diff changeset
199
4a837da84f5f fixup: allow to be aborted using hg abort
Anton Shestakov <av6@dwimlabs.net>
parents: 6195
diff changeset
200 $ hg abort
4a837da84f5f fixup: allow to be aborted using hg abort
Anton Shestakov <av6@dwimlabs.net>
parents: 6195
diff changeset
201 fixup aborted
4a837da84f5f fixup: allow to be aborted using hg abort
Anton Shestakov <av6@dwimlabs.net>
parents: 6195
diff changeset
202 working directory is now at 12b5e442244f
4a837da84f5f fixup: allow to be aborted using hg abort
Anton Shestakov <av6@dwimlabs.net>
parents: 6195
diff changeset
203
6130
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
204 testing --continue flag
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
205
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
206 $ hg fixup -r 'desc("update foo")'
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
207 merging foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
208 warning: conflicts while merging foo! (edit, then use 'hg resolve --mark')
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
209 unresolved merge conflicts
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
210 (see 'hg help evolve.interrupted')
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
211 [240]
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
212
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
213 $ hg status --verbose
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
214 M foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
215 ? foo.orig
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
216 # The repository is in an unfinished *fixup* state.
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
217
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
218 # Unresolved merge conflicts:
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
219 #
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
220 # foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
221 #
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
222 # To mark files as resolved: hg resolve --mark FILE
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
223
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
224 # To continue: hg fixup --continue
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
225 # To abort: hg fixup --abort
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
226
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
227 $ echo 'finalize foo' > foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
228
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
229 $ hg resolve -m
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
230 (no more unresolved files)
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
231 continue: hg fixup --continue
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
232
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
233 $ hg fixup --continue
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
234 evolving 11:1c9958e73c2d "temporary fixup commit"
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
235
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
236 $ hg diff -c tip
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
237 diff --git a/foo b/foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
238 --- a/foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
239 +++ b/foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
240 @@ -1,1 +1,1 @@
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
241 -foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
242 +finalize foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
243
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
244 $ hg glog
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
245 o 13:fed7e534b3bb update foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
246 | () draft
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
247 | @ 11:1c9958e73c2d temporary fixup commit
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
248 | | () secret
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
249 | o 9:12b5e442244f baz
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
250 | | () secret
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
251 | o 5:2eec5320cfc7 bar
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
252 |/ () draft
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
253 o 0:e63c23eaa88a foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
254 () draft
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
255
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
256 $ hg evolve
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
257 update:[13] update foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
258 1 files updated, 0 files merged, 2 files removed, 0 files unresolved
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
259 working directory is now at fed7e534b3bb
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
260
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
261 amending a descendant of wdp
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
262
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
263 $ hg up 0
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
264 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
265 $ echo foobar > foobar
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
266 $ hg add foobar
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
267 $ hg fixup -r 'desc(baz)'
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
268 $ hg glog
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
269 o 16:b50fd0850076 baz
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
270 | () secret
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
271 | @ 14:4a9c4d14d447 temporary fixup commit
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
272 | | () draft
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
273 | | o 13:fed7e534b3bb update foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
274 | |/ () draft
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
275 o | 5:2eec5320cfc7 bar
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
276 |/ () draft
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
277 o 0:e63c23eaa88a foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
278 () draft
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
279
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
280 $ hg evolve
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
281 update:[16] baz
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
282 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
283 working directory is now at b50fd0850076
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
284
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
285 $ hg glog
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
286 @ 16:b50fd0850076 baz
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
287 | () secret
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
288 | o 13:fed7e534b3bb update foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
289 | | () draft
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
290 o | 5:2eec5320cfc7 bar
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
291 |/ () draft
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
292 o 0:e63c23eaa88a foo
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
293 () draft
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
294 $ hg diff -c .
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
295 diff --git a/baz b/baz
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
296 new file mode 100644
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
297 --- /dev/null
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
298 +++ b/baz
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
299 @@ -0,0 +1,2 @@
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
300 +baz
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
301 +buzz
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
302 diff --git a/foobar b/foobar
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
303 new file mode 100644
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
304 --- /dev/null
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
305 +++ b/foobar
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
306 @@ -0,0 +1,1 @@
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
307 +foobar
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
308
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
309 no fixup in progress
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
310
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
311 $ hg fixup --continue
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
312 abort: no interrupted fixup to continue
6195
9e0aa8929206 fixup: use compat.StateError for missing state file
Anton Shestakov <av6@dwimlabs.net>
parents: 6194
diff changeset
313 [20]
6130
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
314
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
315 $ hg fixup --abort
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
316 abort: no interrupted fixup to abort
6195
9e0aa8929206 fixup: use compat.StateError for missing state file
Anton Shestakov <av6@dwimlabs.net>
parents: 6194
diff changeset
317 [20]
6130
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
318
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
319 testing error cases
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
320
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
321 $ hg fixup tip --abort
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
322 abort: cannot specify a revision with --abort
6194
1e7190adffca fixup: use compat.InputError for invalid user input
Anton Shestakov <av6@dwimlabs.net>
parents: 6130
diff changeset
323 [10]
6130
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
324
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
325 $ hg fixup -r tip --continue
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
326 abort: cannot specify a revision with --continue
6194
1e7190adffca fixup: use compat.InputError for invalid user input
Anton Shestakov <av6@dwimlabs.net>
parents: 6130
diff changeset
327 [10]
6130
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
328
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
329 $ hg fixup
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
330 abort: please specify a revision to fixup
6194
1e7190adffca fixup: use compat.InputError for invalid user input
Anton Shestakov <av6@dwimlabs.net>
parents: 6130
diff changeset
331 [10]
6130
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
332
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
333 $ hg fixup tip
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
334 nothing changed
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
335 [1]
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
336
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
337 $ hg fixup -r tip
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
338 nothing changed
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
339 [1]
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
340
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
341 $ hg fixup 1 2 3
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
342 hg fixup: invalid arguments
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
343 hg fixup [OPTION]... [-r] REV
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
344
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
345 add working directory changes to an arbitrary revision
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
346
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
347 options:
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
348
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
349 -r --rev REV revision to amend
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
350 -c --continue continue an interrupted fixup
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
351 --abort abort an interrupted fixup
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
352
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
353 (use 'hg fixup -h' to show more help)
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
354 [10]
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
355
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
356 $ hg fixup :10 -r 5
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
357 abort: please specify just one revision
6194
1e7190adffca fixup: use compat.InputError for invalid user input
Anton Shestakov <av6@dwimlabs.net>
parents: 6130
diff changeset
358 [10]
6130
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
359
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
360 $ cd ..
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
361
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
362 Multiple branches
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
363 -----------------
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
364
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
365 $ hg init branches
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
366 $ cd branches
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
367
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
368 $ cat >> .hg/hgrc << EOF
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
369 > [extensions]
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
370 > topic =
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
371 > [alias]
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
372 > glog = log -GT '{rev}:{node|short} {desc}\n ({branch}) [{topic}]\n'
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
373 > EOF
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
374
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
375 $ mkcommit ROOT
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
376 $ hg topic topic-A -q
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
377 $ mkcommit A -q
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
378 $ hg topic topic-B -q
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
379 $ mkcommit B -q
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
380 $ hg up 'desc(ROOT)' -q
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
381 $ hg branch other-branch -q
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
382 $ hg topic topic-C -q
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
383 $ mkcommit C -q
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
384 $ hg topic topic-D -q
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
385 $ mkcommit D -q
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
386 $ hg up 'desc(A)' -q
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
387
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
388 $ hg glog
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
389 o 4:deb0223c611b D
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
390 | (other-branch) [topic-D]
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
391 o 3:381934d792ab C
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
392 | (other-branch) [topic-C]
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
393 | o 2:d2dfccd24f25 B
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
394 | | (default) [topic-B]
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
395 | @ 1:0a2783c5c927 A
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
396 |/ (default) [topic-A]
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
397 o 0:ea207398892e ROOT
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
398 (default) []
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
399
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
400 $ echo Z > Z
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
401 $ hg add Z
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
402 $ hg fix-up -r 'desc(C)'
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
403 switching to topic topic-C
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
404 1 new orphan changesets
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
405
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
406 $ hg evolve
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
407 update:[7] C
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
408 switching to topic topic-C
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
409 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
410 working directory is now at 57d19d0ff7ee
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
411 $ hg evolve --any
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
412 move:[4] D
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
413 atop:[7] C
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
414 switching to topic topic-C
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
415
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
416 C and D keep their original branch and topics
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
417
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
418 $ hg glog
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
419 o 8:203e06b553f5 D
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
420 | (other-branch) [topic-D]
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
421 @ 7:57d19d0ff7ee C
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
422 | (other-branch) [topic-C]
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
423 | o 2:d2dfccd24f25 B
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
424 | | (default) [topic-B]
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
425 | o 1:0a2783c5c927 A
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
426 |/ (default) [topic-A]
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
427 o 0:ea207398892e ROOT
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
428 (default) []
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
429
cd07d6bd4e2a cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
430 $ cd ..