test-revset-outgoing.t
107 lines
| 2.2 KiB
| text/troff
|
Tads3Lexer
/ tests / test-revset-outgoing.t
Adrian Buehlmann
|
r12614 | $ cat >> $HGRCPATH <<EOF | ||
> [alias] | ||||
> tlog = log --template "{rev}:{node|short}: '{desc}' {branches}\n" | ||||
> tglog = tlog -G | ||||
> tout = out --template "{rev}:{node|short}: '{desc}' {branches}\n" | ||||
> EOF | ||||
$ hg init a | ||||
$ cd a | ||||
$ echo a > a | ||||
$ hg ci -Aqm0 | ||||
$ echo foo >> a | ||||
$ hg ci -Aqm1 | ||||
$ hg up -q 0 | ||||
$ hg branch stable | ||||
marked working directory as branch stable | ||||
Matt Mackall
|
r15615 | (branches are permanent and global, did you want a bookmark?) | ||
Adrian Buehlmann
|
r12614 | $ echo bar >> a | ||
$ hg ci -qm2 | ||||
$ hg tglog | ||||
@ 2:7bee6c3bea3a: '2' stable | ||||
| | ||||
| o 1:3560197d8331: '1' | ||||
|/ | ||||
o 0:f7b1eb17ad24: '0' | ||||
$ cd .. | ||||
$ hg clone -q a#stable b | ||||
$ cd b | ||||
$ cat .hg/hgrc | ||||
Augie Fackler
|
r22380 | # You may want to set your username here if it is not set | ||
# globally, or this repository requires a different | ||||
# username from your usual configuration. If you want to | ||||
# set something for all of your repositories on this | ||||
# computer, try running the command | ||||
# 'hg config --edit --global' | ||||
# [ui] | ||||
# username = Jane Doe <jdoe@example.com> | ||||
Adrian Buehlmann
|
r12614 | [paths] | ||
Mads Kiilerich
|
r15447 | default = $TESTTMP/a#stable (glob) | ||
Adrian Buehlmann
|
r12614 | |||
$ echo red >> a | ||||
$ hg ci -qm3 | ||||
$ hg up -q default | ||||
$ echo blue >> a | ||||
$ hg ci -qm4 | ||||
$ hg tglog | ||||
@ 3:f0461977a3db: '4' | ||||
| | ||||
| o 2:1d4099801a4e: '3' stable | ||||
| | | ||||
| o 1:7bee6c3bea3a: '2' stable | ||||
|/ | ||||
o 0:f7b1eb17ad24: '0' | ||||
$ hg tout | ||||
Mads Kiilerich
|
r15447 | comparing with $TESTTMP/a (glob) | ||
Adrian Buehlmann
|
r12614 | searching for changes | ||
2:1d4099801a4e: '3' stable | ||||
$ hg tlog -r 'outgoing()' | ||||
2:1d4099801a4e: '3' stable | ||||
$ hg tout ../a#default | ||||
comparing with ../a | ||||
searching for changes | ||||
3:f0461977a3db: '4' | ||||
$ hg tlog -r 'outgoing("../a#default")' | ||||
3:f0461977a3db: '4' | ||||
$ echo "green = ../a#default" >> .hg/hgrc | ||||
$ cat .hg/hgrc | ||||
Augie Fackler
|
r22380 | # You may want to set your username here if it is not set | ||
# globally, or this repository requires a different | ||||
# username from your usual configuration. If you want to | ||||
# set something for all of your repositories on this | ||||
# computer, try running the command | ||||
# 'hg config --edit --global' | ||||
# [ui] | ||||
# username = Jane Doe <jdoe@example.com> | ||||
Adrian Buehlmann
|
r12614 | [paths] | ||
Mads Kiilerich
|
r15447 | default = $TESTTMP/a#stable (glob) | ||
Adrian Buehlmann
|
r12614 | green = ../a#default | ||
$ hg tout green | ||||
Mads Kiilerich
|
r15447 | comparing with $TESTTMP/a (glob) | ||
Adrian Buehlmann
|
r12614 | searching for changes | ||
3:f0461977a3db: '4' | ||||
$ hg tlog -r 'outgoing("green")' | ||||
3:f0461977a3db: '4' | ||||
Mads Kiilerich
|
r16913 | $ cd .. | ||