equal
deleted
inserted
replaced
|
1 $ cat >> $HGRCPATH <<EOF |
|
2 > [defaults] |
|
3 > amend=-d "0 0" |
|
4 > [extensions] |
|
5 > hgext.rebase= |
|
6 > hgext.graphlog= |
|
7 > EOF |
|
8 $ echo "obsolete=$(echo $(dirname $TESTDIR))/hgext/obsolete.py" >> $HGRCPATH |
|
9 $ echo "evolve=$(echo $(dirname $TESTDIR))/hgext/evolve.py" >> $HGRCPATH |
|
10 |
|
11 $ hg init repo |
|
12 $ cd repo |
|
13 $ echo a > a |
|
14 $ hg ci -Am adda |
|
15 adding a |
|
16 |
|
17 Test amend captures branches |
|
18 |
|
19 $ hg branch foo |
|
20 marked working directory as branch foo |
|
21 (branches are permanent and global, did you want a bookmark?) |
|
22 $ hg amend |
|
23 $ hg branch |
|
24 foo |
|
25 $ hg branches |
|
26 foo 2:a34b93d251e4 |
|
27 default 0:07f494440405 (inactive) |
|
28 $ hg glog --template '{rev}@{branch} {desc|firstline}\n' |
|
29 @ 2@foo adda |
|
30 |
|
31 |