sapling/tests/test-remotenames-bookmarks.t
2018-01-03 06:15:47 -08:00

30 lines
764 B
Perl

$ extpath=`dirname $TESTDIR`
$ cp $extpath/hgext/remotenames.py $TESTTMP # use $TESTTMP substitution in message
$ cat >> $HGRCPATH << EOF
> [extensions]
> remotenames=
> EOF
Setup repo
$ hg init repo
$ cd repo
$ echo 'foo' > a.txt
$ hg add a.txt
$ hg commit -m 'a'
Testing bookmark options without args
$ hg bookmark a
$ hg bookmark b
$ hg bookmark -v
a 0:2dcb9139ea49
* b 0:2dcb9139ea49
$ hg bookmark --track a
$ hg bookmark -v
a 0:2dcb9139ea49
* b 0:2dcb9139ea49 [a]
$ hg bookmark --untrack
$ hg bookmark -v
a 0:2dcb9139ea49
* b 0:2dcb9139ea49