sapling/eden/scm/tests/test-revset-outgoing.t
Jun Wu 9bf6b674a6 config: use Rust graph render as default
Summary: Change the legacy Python graph render to Rust renderer.

Reviewed By: DurhamG

Differential Revision: D24317802

fbshipit-source-id: 4c3dc3a6dd02b7ebe79596a8e77f4b6b139d2e20
2020-10-19 17:07:30 -07:00

120 lines
2.3 KiB
Perl

#chg-compatible
$ readconfig <<EOF
> [alias]
> tlog = log --template "{node|short}: '{desc}'\n"
> tout = out --template "{node|short}: '{desc}'\n"
> EOF
$ hg init a
$ cd a
$ echo a > a
$ hg ci -Aqm0
$ echo foo >> a
$ hg ci -Aqm1
$ hg up -q 'desc(0)'
$ echo bar >> a
$ hg ci -qm2
$ tglog
@ a578af2cfd0c '2'
o 3560197d8331 '1'
o f7b1eb17ad24 '0'
$ cd ..
$ hg clone -q a b
$ cd b
$ cat .hg/hgrc
# example repository config (see 'hg help config' for more info)
[paths]
default = $TESTTMP/a
# path aliases to other clones of this repo in URLs or filesystem paths
# (see 'hg help config.paths' for more info)
#
# default:pushurl = ssh://jdoe@example.net/hg/jdoes-fork
# my-fork = ssh://jdoe@example.net/hg/jdoes-fork
# my-clone = /home/jdoe/jdoes-clone
[ui]
# name and email (local to this repository, optional), e.g.
# username = Jane Doe <jdoe@example.com>
$ echo red >> a
$ hg ci -qm3
$ hg up -q default
$ echo blue >> a
$ hg ci -qm4
$ tglog
@ acadbdc73b28 '4'
o 5de9cb7d8f67 '3'
o a578af2cfd0c '2'
o 3560197d8331 '1'
o f7b1eb17ad24 '0'
$ hg tout
comparing with $TESTTMP/a
searching for changes
5de9cb7d8f67: '3'
acadbdc73b28: '4'
$ hg tlog -r 'outgoing()'
5de9cb7d8f67: '3'
acadbdc73b28: '4'
$ hg tout ../a
comparing with ../a
searching for changes
5de9cb7d8f67: '3'
acadbdc73b28: '4'
$ hg tlog -r 'outgoing("../a")'
5de9cb7d8f67: '3'
acadbdc73b28: '4'
$ echo "green = ../a" >> .hg/hgrc
$ cat .hg/hgrc
# example repository config (see 'hg help config' for more info)
[paths]
default = $TESTTMP/a
# path aliases to other clones of this repo in URLs or filesystem paths
# (see 'hg help config.paths' for more info)
#
# default:pushurl = ssh://jdoe@example.net/hg/jdoes-fork
# my-fork = ssh://jdoe@example.net/hg/jdoes-fork
# my-clone = /home/jdoe/jdoes-clone
[ui]
# name and email (local to this repository, optional), e.g.
# username = Jane Doe <jdoe@example.com>
green = ../a
$ hg tout green
abort: repository green does not exist!
[255]
$ hg tlog -r 'outgoing("green")'
abort: repository green does not exist!
[255]
$ cd ..