sapling/tests/test-remotenames-bookmarks.t

30 lines
764 B
Perl
Raw Normal View History

$ extpath=`dirname $TESTDIR`
2018-01-03 17:15:47 +03:00
$ cp $extpath/hgext/remotenames.py $TESTTMP # use $TESTTMP substitution in message
$ cat >> $HGRCPATH << EOF
> [extensions]
2018-01-03 17:15:47 +03:00
> 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