2010-11-05 00:59:03 +03:00
|
|
|
$ HGENCODING=utf-8
|
|
|
|
$ export HGENCODING
|
|
|
|
|
|
|
|
$ try() {
|
|
|
|
> hg debugrevspec --debug $@
|
|
|
|
> }
|
|
|
|
|
|
|
|
$ log() {
|
|
|
|
> hg log --template '{rev}\n' -r "$1"
|
|
|
|
> }
|
|
|
|
|
|
|
|
$ hg init repo
|
|
|
|
$ cd repo
|
|
|
|
|
|
|
|
$ try 'p1()'
|
|
|
|
('func', ('symbol', 'p1'), None)
|
|
|
|
$ try 'p2()'
|
|
|
|
('func', ('symbol', 'p2'), None)
|
2010-11-07 20:14:42 +03:00
|
|
|
$ try 'parents()'
|
|
|
|
('func', ('symbol', 'parents'), None)
|
2010-11-05 00:59:03 +03:00
|
|
|
|
|
|
|
null revision
|
|
|
|
$ log 'p1()'
|
|
|
|
$ log 'p2()'
|
2010-11-05 01:09:00 +03:00
|
|
|
$ log 'parents()'
|
2010-11-05 00:59:03 +03:00
|
|
|
|
|
|
|
working dir with a single parent
|
|
|
|
$ echo a > a
|
|
|
|
$ hg ci -Aqm0
|
|
|
|
$ log 'p1()'
|
|
|
|
0
|
2010-11-07 20:14:42 +03:00
|
|
|
$ log 'tag() and p1()'
|
2010-11-05 00:59:03 +03:00
|
|
|
$ log 'p2()'
|
2010-11-05 01:09:00 +03:00
|
|
|
$ log 'parents()'
|
|
|
|
0
|
2010-11-07 20:14:42 +03:00
|
|
|
$ log 'tag() and parents()'
|
2010-11-05 00:59:03 +03:00
|
|
|
|
|
|
|
merge in progress
|
|
|
|
$ echo b > b
|
|
|
|
$ hg ci -Aqm1
|
|
|
|
$ hg up -q 0
|
|
|
|
$ echo c > c
|
|
|
|
$ hg ci -Aqm2
|
|
|
|
$ hg merge -q
|
|
|
|
$ log 'p1()'
|
|
|
|
2
|
|
|
|
$ log 'p2()'
|
|
|
|
1
|
2010-11-07 20:14:42 +03:00
|
|
|
$ log 'tag() and p2()'
|
2010-11-05 01:09:00 +03:00
|
|
|
$ log 'parents()'
|
|
|
|
1
|
2010-11-07 20:14:42 +03:00
|
|
|
2
|