Mercurial > evolve
annotate tests/test-fixup.t @ 6931:237f99ee3d64 stable
tests: remove leading spaces in `hg help` output, run only on Mercurial 6.9+
Core decided to remove a lot of leading spaces in docstrings to support Python
3.13, see 51057ab0dffa for details.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Mon, 11 Nov 2024 10:39:57 +0400 |
parents | d0f0a7b68d2d |
children |
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 |
6931
237f99ee3d64
tests: remove leading spaces in `hg help` output, run only on Mercurial 6.9+
Anton Shestakov <av6@dwimlabs.net>
parents:
6231
diff
changeset
|
15 #if hg69 |
6130
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
16 $ hg help fixup |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
17 hg fixup [OPTION]... [-r] REV |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
18 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
19 aliases: fix-up |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
20 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
21 add working directory changes to an arbitrary revision |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
22 |
6931
237f99ee3d64
tests: remove leading spaces in `hg help` output, run only on Mercurial 6.9+
Anton Shestakov <av6@dwimlabs.net>
parents:
6231
diff
changeset
|
23 A new changeset will be created, superseding the one specified. The new |
237f99ee3d64
tests: remove leading spaces in `hg help` output, run only on Mercurial 6.9+
Anton Shestakov <av6@dwimlabs.net>
parents:
6231
diff
changeset
|
24 changeset will combine working directory changes with the changes in the |
237f99ee3d64
tests: remove leading spaces in `hg help` output, run only on Mercurial 6.9+
Anton Shestakov <av6@dwimlabs.net>
parents:
6231
diff
changeset
|
25 target revision. |
6130
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
26 |
6931
237f99ee3d64
tests: remove leading spaces in `hg help` output, run only on Mercurial 6.9+
Anton Shestakov <av6@dwimlabs.net>
parents:
6231
diff
changeset
|
27 This operation requires the working directory changes to be relocated onto the |
237f99ee3d64
tests: remove leading spaces in `hg help` output, run only on Mercurial 6.9+
Anton Shestakov <av6@dwimlabs.net>
parents:
6231
diff
changeset
|
28 target revision, which might result in merge conflicts. |
6130
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
29 |
6931
237f99ee3d64
tests: remove leading spaces in `hg help` output, run only on Mercurial 6.9+
Anton Shestakov <av6@dwimlabs.net>
parents:
6231
diff
changeset
|
30 If fixup is interrupted to manually resolve a conflict, it can be continued |
237f99ee3d64
tests: remove leading spaces in `hg help` output, run only on Mercurial 6.9+
Anton Shestakov <av6@dwimlabs.net>
parents:
6231
diff
changeset
|
31 with --continue/-c, or aborted with --abort. |
6130
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
32 |
6931
237f99ee3d64
tests: remove leading spaces in `hg help` output, run only on Mercurial 6.9+
Anton Shestakov <av6@dwimlabs.net>
parents:
6231
diff
changeset
|
33 Note that this command is fairly new and its behavior is still experimental. |
237f99ee3d64
tests: remove leading spaces in `hg help` output, run only on Mercurial 6.9+
Anton Shestakov <av6@dwimlabs.net>
parents:
6231
diff
changeset
|
34 For example, the working copy will be left on a temporary, obsolete commit |
237f99ee3d64
tests: remove leading spaces in `hg help` output, run only on Mercurial 6.9+
Anton Shestakov <av6@dwimlabs.net>
parents:
6231
diff
changeset
|
35 containing the fixed-up changes after the operation. This might change in the |
237f99ee3d64
tests: remove leading spaces in `hg help` output, run only on Mercurial 6.9+
Anton Shestakov <av6@dwimlabs.net>
parents:
6231
diff
changeset
|
36 future. |
6130
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
37 |
6931
237f99ee3d64
tests: remove leading spaces in `hg help` output, run only on Mercurial 6.9+
Anton Shestakov <av6@dwimlabs.net>
parents:
6231
diff
changeset
|
38 Returns 0 on success, 1 if nothing changed. |
6130
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
39 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
40 options: |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
41 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
42 -r --rev REV revision to amend |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
43 -c --continue continue an interrupted fixup |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
44 --abort abort an interrupted fixup |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
45 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
46 (some details hidden, use --verbose to show complete help) |
6931
237f99ee3d64
tests: remove leading spaces in `hg help` output, run only on Mercurial 6.9+
Anton Shestakov <av6@dwimlabs.net>
parents:
6231
diff
changeset
|
47 #endif |
6130
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 Simple cases |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
50 ------------ |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
51 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
52 $ hg init simple |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
53 $ cd simple |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
54 $ mkcommit foo |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
55 $ mkcommit bar |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
56 $ mkcommit baz |
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 amending the middle of the stack |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
59 -------------------------------- |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
60 |
6211
6faab8daf02a
fixup: work correctly with bookmarks
Anton Shestakov <av6@dwimlabs.net>
parents:
6191
diff
changeset
|
61 $ hg bookmark bm |
6130
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
62 $ echo 'hookah bar' > bar |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
63 $ hg fixup -r 'desc(bar)' |
6211
6faab8daf02a
fixup: work correctly with bookmarks
Anton Shestakov <av6@dwimlabs.net>
parents:
6191
diff
changeset
|
64 (leaving bookmark bm) |
6130
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
65 1 new orphan changesets |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
66 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
67 $ hg diff -c tip |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
68 diff --git a/bar b/bar |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
69 new file mode 100644 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
70 --- /dev/null |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
71 +++ b/bar |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
72 @@ -0,0 +1,1 @@ |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
73 +hookah bar |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
74 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
75 $ hg glog |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
76 o 5:2eec5320cfc7 bar |
6211
6faab8daf02a
fixup: work correctly with bookmarks
Anton Shestakov <av6@dwimlabs.net>
parents:
6191
diff
changeset
|
77 | (bm) draft |
6130
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
78 | @ 3:fd2f632e47ab temporary fixup commit |
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 | * 2:a425495a8e64 baz |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
81 | | () draft orphan |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
82 | x 1:c0c7cf58edc5 bar |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
83 |/ () draft |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
84 o 0:e63c23eaa88a foo |
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 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
87 $ hg glog --hidden |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
88 o 5:2eec5320cfc7 bar |
6211
6faab8daf02a
fixup: work correctly with bookmarks
Anton Shestakov <av6@dwimlabs.net>
parents:
6191
diff
changeset
|
89 | (bm) draft |
6130
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
90 | x 4:4869c1db2884 temporary fixup commit |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
91 | | () draft |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
92 | | @ 3:fd2f632e47ab temporary fixup commit |
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 | | * 2:a425495a8e64 baz |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
95 | |/ () draft orphan |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
96 | x 1:c0c7cf58edc5 bar |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
97 |/ () draft |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
98 o 0:e63c23eaa88a foo |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
99 () draft |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
100 |
6223
4298ae0b966d
evolve: don't update wdir when --dry-run is given (issue6669)
Anton Shestakov <av6@dwimlabs.net>
parents:
6211
diff
changeset
|
101 using --dry-run should only print actions (issue6669) |
4298ae0b966d
evolve: don't update wdir when --dry-run is given (issue6669)
Anton Shestakov <av6@dwimlabs.net>
parents:
6211
diff
changeset
|
102 |
4298ae0b966d
evolve: don't update wdir when --dry-run is given (issue6669)
Anton Shestakov <av6@dwimlabs.net>
parents:
6211
diff
changeset
|
103 $ hg evolve --dry-run |
4298ae0b966d
evolve: don't update wdir when --dry-run is given (issue6669)
Anton Shestakov <av6@dwimlabs.net>
parents:
6211
diff
changeset
|
104 update:[5] bar |
4298ae0b966d
evolve: don't update wdir when --dry-run is given (issue6669)
Anton Shestakov <av6@dwimlabs.net>
parents:
6211
diff
changeset
|
105 |
4298ae0b966d
evolve: don't update wdir when --dry-run is given (issue6669)
Anton Shestakov <av6@dwimlabs.net>
parents:
6211
diff
changeset
|
106 $ hg evolve --dry-run --any |
4298ae0b966d
evolve: don't update wdir when --dry-run is given (issue6669)
Anton Shestakov <av6@dwimlabs.net>
parents:
6211
diff
changeset
|
107 update:[5] bar |
4298ae0b966d
evolve: don't update wdir when --dry-run is given (issue6669)
Anton Shestakov <av6@dwimlabs.net>
parents:
6211
diff
changeset
|
108 move:[2] baz |
4298ae0b966d
evolve: don't update wdir when --dry-run is given (issue6669)
Anton Shestakov <av6@dwimlabs.net>
parents:
6211
diff
changeset
|
109 atop:[5] bar |
4298ae0b966d
evolve: don't update wdir when --dry-run is given (issue6669)
Anton Shestakov <av6@dwimlabs.net>
parents:
6211
diff
changeset
|
110 hg rebase -r a425495a8e64 -d 2eec5320cfc7 |
4298ae0b966d
evolve: don't update wdir when --dry-run is given (issue6669)
Anton Shestakov <av6@dwimlabs.net>
parents:
6211
diff
changeset
|
111 |
6130
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
112 $ hg evolve |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
113 update:[5] bar |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
114 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
|
115 working directory is now at 2eec5320cfc7 |
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 evolve |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
118 move:[2] baz |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
119 atop:[5] bar |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
120 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
121 $ hg glog |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
122 o 6:eb1755d9f810 baz |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
123 | () draft |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
124 @ 5:2eec5320cfc7 bar |
6211
6faab8daf02a
fixup: work correctly with bookmarks
Anton Shestakov <av6@dwimlabs.net>
parents:
6191
diff
changeset
|
125 | (bm) draft |
6130
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
126 o 0:e63c23eaa88a foo |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
127 () draft |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
128 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
129 amending working directory parent in secret phase |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
130 ------------------------------------------------- |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
131 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
132 $ hg up -r 'desc(baz)' |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
133 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
|
134 $ hg phase --secret --force -r . |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
135 $ echo buzz >> baz |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
136 $ hg fix-up -r . |
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 evolve |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
139 update:[9] baz |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
140 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
|
141 working directory is now at 12b5e442244f |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
142 $ hg glog |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
143 @ 9:12b5e442244f baz |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
144 | () secret |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
145 o 5:2eec5320cfc7 bar |
6211
6faab8daf02a
fixup: work correctly with bookmarks
Anton Shestakov <av6@dwimlabs.net>
parents:
6191
diff
changeset
|
146 | (bm) draft |
6130
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
147 o 0:e63c23eaa88a 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 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
150 testing --abort/--continue |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
151 -------------------------- |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
152 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
153 $ hg up -r 'desc(foo)' |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
154 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
|
155 $ echo 'update foo' > foo |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
156 $ hg ci -m 'update foo' |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
157 created new head |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
158 $ hg up -r 'desc(baz)' |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
159 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
|
160 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
161 $ hg glog |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
162 o 10:c90c517f86b3 update foo |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
163 | () draft |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
164 | @ 9:12b5e442244f baz |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
165 | | () secret |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
166 | o 5:2eec5320cfc7 bar |
6211
6faab8daf02a
fixup: work correctly with bookmarks
Anton Shestakov <av6@dwimlabs.net>
parents:
6191
diff
changeset
|
167 |/ (bm) draft |
6130
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
168 o 0:e63c23eaa88a foo |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
169 () draft |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
170 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
171 testing --abort flag |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
172 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
173 $ echo 'update foo again' >> 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 $ hg fixup -r 'desc("update foo")' |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
176 merging foo |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
177 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
|
178 unresolved merge conflicts |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
179 (see 'hg help evolve.interrupted') |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
180 [240] |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
181 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
182 $ hg diff |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
183 diff --git a/foo b/foo |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
184 --- a/foo |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
185 +++ b/foo |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
186 @@ -1,1 +1,6 @@ |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
187 +<<<<<<< destination: c90c517f86b3 - test: update foo |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
188 update foo |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
189 +======= |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
190 +foo |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
191 +update foo again |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
192 +>>>>>>> evolving: 1c9958e73c2d - test: temporary fixup commit |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
193 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
194 $ hg fixup --abort |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
195 fixup aborted |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
196 working directory is now at 12b5e442244f |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
197 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
198 $ hg diff |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
199 diff --git a/foo b/foo |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
200 --- a/foo |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
201 +++ b/foo |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
202 @@ -1,1 +1,2 @@ |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
203 foo |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
204 +update foo again |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
205 |
6191
d2ec9ab1694e
fixup: allow to be aborted using hg abort
Anton Shestakov <av6@dwimlabs.net>
parents:
6130
diff
changeset
|
206 testing abort command |
d2ec9ab1694e
fixup: allow to be aborted using hg abort
Anton Shestakov <av6@dwimlabs.net>
parents:
6130
diff
changeset
|
207 |
d2ec9ab1694e
fixup: allow to be aborted using hg abort
Anton Shestakov <av6@dwimlabs.net>
parents:
6130
diff
changeset
|
208 $ hg fixup -r 'desc("update foo")' |
d2ec9ab1694e
fixup: allow to be aborted using hg abort
Anton Shestakov <av6@dwimlabs.net>
parents:
6130
diff
changeset
|
209 merging foo |
d2ec9ab1694e
fixup: allow to be aborted using hg abort
Anton Shestakov <av6@dwimlabs.net>
parents:
6130
diff
changeset
|
210 warning: conflicts while merging foo! (edit, then use 'hg resolve --mark') |
d2ec9ab1694e
fixup: allow to be aborted using hg abort
Anton Shestakov <av6@dwimlabs.net>
parents:
6130
diff
changeset
|
211 unresolved merge conflicts |
d2ec9ab1694e
fixup: allow to be aborted using hg abort
Anton Shestakov <av6@dwimlabs.net>
parents:
6130
diff
changeset
|
212 (see 'hg help evolve.interrupted') |
d2ec9ab1694e
fixup: allow to be aborted using hg abort
Anton Shestakov <av6@dwimlabs.net>
parents:
6130
diff
changeset
|
213 [240] |
d2ec9ab1694e
fixup: allow to be aborted using hg abort
Anton Shestakov <av6@dwimlabs.net>
parents:
6130
diff
changeset
|
214 |
d2ec9ab1694e
fixup: allow to be aborted using hg abort
Anton Shestakov <av6@dwimlabs.net>
parents:
6130
diff
changeset
|
215 $ hg abort |
d2ec9ab1694e
fixup: allow to be aborted using hg abort
Anton Shestakov <av6@dwimlabs.net>
parents:
6130
diff
changeset
|
216 fixup aborted |
d2ec9ab1694e
fixup: allow to be aborted using hg abort
Anton Shestakov <av6@dwimlabs.net>
parents:
6130
diff
changeset
|
217 working directory is now at 12b5e442244f |
d2ec9ab1694e
fixup: allow to be aborted using hg abort
Anton Shestakov <av6@dwimlabs.net>
parents:
6130
diff
changeset
|
218 |
6130
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
219 testing --continue flag |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
220 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
221 $ hg fixup -r 'desc("update foo")' |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
222 merging foo |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
223 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
|
224 unresolved merge conflicts |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
225 (see 'hg help evolve.interrupted') |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
226 [240] |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
227 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
228 $ hg status --verbose |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
229 M foo |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
230 ? foo.orig |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
231 # The repository is in an unfinished *fixup* state. |
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 # Unresolved merge conflicts: |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
234 # |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
235 # foo |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
236 # |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
237 # To mark files as resolved: hg resolve --mark FILE |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
238 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
239 # To continue: hg fixup --continue |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
240 # To abort: hg fixup --abort |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
241 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
242 $ echo 'finalize foo' > 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 resolve -m |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
245 (no more unresolved files) |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
246 continue: hg fixup --continue |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
247 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
248 $ hg fixup --continue |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
249 evolving 11:1c9958e73c2d "temporary fixup commit" |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
250 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
251 $ hg diff -c tip |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
252 diff --git a/foo b/foo |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
253 --- a/foo |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
254 +++ b/foo |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
255 @@ -1,1 +1,1 @@ |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
256 -foo |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
257 +finalize foo |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
258 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
259 $ hg glog |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
260 o 13:fed7e534b3bb update foo |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
261 | () draft |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
262 | @ 11:1c9958e73c2d temporary fixup commit |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
263 | | () secret |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
264 | o 9:12b5e442244f baz |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
265 | | () secret |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
266 | o 5:2eec5320cfc7 bar |
6211
6faab8daf02a
fixup: work correctly with bookmarks
Anton Shestakov <av6@dwimlabs.net>
parents:
6191
diff
changeset
|
267 |/ (bm) draft |
6130
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
268 o 0:e63c23eaa88a foo |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
269 () draft |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
270 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
271 $ hg evolve |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
272 update:[13] update foo |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
273 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
|
274 working directory is now at fed7e534b3bb |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
275 |
6201
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
276 testing continue command |
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
277 |
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
278 $ hg up -r 'desc("baz")' |
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
279 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
280 $ echo 'not foo' > foo |
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
281 |
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
282 $ hg fixup -r 'desc("update foo")' |
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
283 merging foo |
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
284 warning: conflicts while merging foo! (edit, then use 'hg resolve --mark') |
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
285 unresolved merge conflicts |
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
286 (see 'hg help evolve.interrupted') |
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
287 [240] |
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
288 $ echo 'bonjour fixed' > foo |
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
289 $ hg resolve --mark foo |
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
290 (no more unresolved files) |
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
291 continue: hg fixup --continue |
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
292 |
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
293 $ hg continue |
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
294 evolving 14:6b0b1270d7dd "temporary fixup commit" |
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
295 |
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
296 $ hg glog |
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
297 o 16:0dd54868f420 update foo |
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
298 | () draft |
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
299 | @ 14:6b0b1270d7dd temporary fixup commit |
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
300 | | () secret |
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
301 | o 9:12b5e442244f baz |
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
302 | | () secret |
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
303 | o 5:2eec5320cfc7 bar |
6231 | 304 |/ (bm) draft |
6201
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
305 o 0:e63c23eaa88a foo |
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
306 () draft |
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
307 |
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
308 $ hg evolve |
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
309 update:[16] update foo |
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
310 1 files updated, 0 files merged, 2 files removed, 0 files unresolved |
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
311 working directory is now at 0dd54868f420 |
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
312 |
6130
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
313 amending a descendant of wdp |
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 up 0 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
316 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
|
317 $ echo foobar > foobar |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
318 $ hg add foobar |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
319 $ hg fixup -r 'desc(baz)' |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
320 $ hg glog |
6201
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
321 o 19:b50fd0850076 baz |
6130
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
322 | () secret |
6201
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
323 | @ 17:4a9c4d14d447 temporary fixup commit |
6130
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
324 | | () draft |
6201
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
325 | | o 16:0dd54868f420 update foo |
6130
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
326 | |/ () draft |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
327 o | 5:2eec5320cfc7 bar |
6211
6faab8daf02a
fixup: work correctly with bookmarks
Anton Shestakov <av6@dwimlabs.net>
parents:
6191
diff
changeset
|
328 |/ (bm) draft |
6130
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
329 o 0:e63c23eaa88a foo |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
330 () draft |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
331 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
332 $ hg evolve |
6201
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
333 update:[19] baz |
6130
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
334 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
|
335 working directory is now at b50fd0850076 |
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 glog |
6201
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
338 @ 19:b50fd0850076 baz |
6130
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
339 | () secret |
6201
d18e16b9b793
fixup: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6196
diff
changeset
|
340 | o 16:0dd54868f420 update foo |
6130
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
341 | | () draft |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
342 o | 5:2eec5320cfc7 bar |
6211
6faab8daf02a
fixup: work correctly with bookmarks
Anton Shestakov <av6@dwimlabs.net>
parents:
6191
diff
changeset
|
343 |/ (bm) draft |
6130
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
344 o 0:e63c23eaa88a foo |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
345 () draft |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
346 $ hg diff -c . |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
347 diff --git a/baz b/baz |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
348 new file mode 100644 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
349 --- /dev/null |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
350 +++ b/baz |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
351 @@ -0,0 +1,2 @@ |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
352 +baz |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
353 +buzz |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
354 diff --git a/foobar b/foobar |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
355 new file mode 100644 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
356 --- /dev/null |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
357 +++ b/foobar |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
358 @@ -0,0 +1,1 @@ |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
359 +foobar |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
360 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
361 no fixup in progress |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
362 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
363 $ hg fixup --continue |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
364 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
|
365 [20] |
6130
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
366 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
367 $ hg fixup --abort |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
368 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
|
369 [20] |
6130
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
370 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
371 testing error cases |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
372 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
373 $ hg fixup tip --abort |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
374 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
|
375 [10] |
6130
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
376 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
377 $ hg fixup -r tip --continue |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
378 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
|
379 [10] |
6130
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
380 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
381 $ hg fixup |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
382 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
|
383 [10] |
6130
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
384 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
385 $ hg fixup tip |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
386 nothing changed |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
387 [1] |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
388 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
389 $ hg fixup -r tip |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
390 nothing changed |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
391 [1] |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
392 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
393 $ hg fixup 1 2 3 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
394 hg fixup: invalid arguments |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
395 hg fixup [OPTION]... [-r] REV |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
396 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
397 add working directory changes to an arbitrary revision |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
398 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
399 options: |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
400 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
401 -r --rev REV revision to amend |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
402 -c --continue continue an interrupted fixup |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
403 --abort abort an interrupted fixup |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
404 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
405 (use 'hg fixup -h' to show more help) |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
406 [10] |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
407 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
408 $ hg fixup :10 -r 5 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
409 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
|
410 [10] |
6130
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
411 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
412 $ cd .. |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
413 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
414 Multiple branches |
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 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
417 $ hg init branches |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
418 $ cd branches |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
419 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
420 $ cat >> .hg/hgrc << EOF |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
421 > [extensions] |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
422 > topic = |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
423 > [alias] |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
424 > 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
|
425 > EOF |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
426 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
427 $ mkcommit ROOT |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
428 $ hg topic topic-A -q |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
429 $ mkcommit A -q |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
430 $ hg topic topic-B -q |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
431 $ mkcommit B -q |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
432 $ hg up 'desc(ROOT)' -q |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
433 $ hg branch other-branch -q |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
434 $ hg topic topic-C -q |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
435 $ mkcommit C -q |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
436 $ hg topic topic-D -q |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
437 $ mkcommit D -q |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
438 $ hg up 'desc(A)' -q |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
439 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
440 $ hg glog |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
441 o 4:deb0223c611b D |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
442 | (other-branch) [topic-D] |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
443 o 3:381934d792ab C |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
444 | (other-branch) [topic-C] |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
445 | o 2:d2dfccd24f25 B |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
446 | | (default) [topic-B] |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
447 | @ 1:0a2783c5c927 A |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
448 |/ (default) [topic-A] |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
449 o 0:ea207398892e ROOT |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
450 (default) [] |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
451 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
452 $ echo Z > Z |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
453 $ hg add Z |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
454 $ hg fix-up -r 'desc(C)' |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
455 switching to topic topic-C |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
456 1 new orphan changesets |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
457 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
458 $ hg evolve |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
459 update:[7] C |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
460 switching to topic topic-C |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
461 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
|
462 working directory is now at 57d19d0ff7ee |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
463 $ hg evolve --any |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
464 move:[4] D |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
465 atop:[7] C |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
466 switching to topic topic-C |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
467 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
468 C and D keep their original branch and topics |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
469 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
470 $ hg glog |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
471 o 8:203e06b553f5 D |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
472 | (other-branch) [topic-D] |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
473 @ 7:57d19d0ff7ee C |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
474 | (other-branch) [topic-C] |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
475 | o 2:d2dfccd24f25 B |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
476 | | (default) [topic-B] |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
477 | o 1:0a2783c5c927 A |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
478 |/ (default) [topic-A] |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
479 o 0:ea207398892e ROOT |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
480 (default) [] |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
481 |
cd07d6bd4e2a
cmdrewrite: a new `hg fixup` command
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff
changeset
|
482 $ cd .. |