sapling/eden/scm/tests/test-revset-outgoing.t
Durham Goode 12d0ab70a0 incoming: delete hg incoming/outgoing
Summary:
These have been disabled since 2019. Let's delete their logic and their
tests.

Reviewed By: quark-zju

Differential Revision: D31580603

fbshipit-source-id: 037f76fcbfd45a857f408c673c2fe0a932e40048
2021-10-18 14:50:54 -07:00

104 lines
2.0 KiB
Perl

#chg-compatible
$ setconfig experimental.allowfilepeer=True
$ readconfig <<EOF
> [alias]
> tlog = log --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 tlog -r 'outgoing()'
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 tlog -r 'outgoing("green")'
abort: repository green does not exist!
[255]
$ cd ..