#chg-compatible $ readconfig < [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 $ 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 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 ..