mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
0ca941a08a
Summary: This diff is part of a series to cleanup fb-hgext and make it pass check-code. Test Plan: all tests pass Reviewers: #sourcecontrol, ttung, mitrandir, akushner Reviewed By: akushner Subscribers: mpm, akushner, mitrandir Differential Revision: https://phabricator.fb.com/D2811997 Signature: t1:2811997:1452200059:9e4fca501a22f95d2d9a22d234758f55e292ea9a
33 lines
768 B
Perl
33 lines
768 B
Perl
$ $PYTHON -c 'import remotenames' || exit 80
|
|
$ extpath=`dirname $TESTDIR`
|
|
$ cp $extpath/reset.py $TESTTMP # use $TESTTMP substitution in message
|
|
$ cat >> $HGRCPATH << EOF
|
|
> [extensions]
|
|
> reset=$TESTTMP/reset.py
|
|
> remotenames=
|
|
> EOF
|
|
|
|
$ hg init repo
|
|
$ cd repo
|
|
|
|
$ echo x > x
|
|
$ hg commit -qAm x
|
|
$ hg book foo
|
|
$ echo x >> x
|
|
$ hg commit -qAm x2
|
|
|
|
Resetting past a remote bookmark should not delete the remote bookmark
|
|
|
|
$ cd ..
|
|
$ hg clone repo client
|
|
updating to branch default
|
|
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
|
$ cd client
|
|
$ hg book bar
|
|
$ hg reset --clean "default/foo^"
|
|
$ hg log -G -T '{node|short} {bookmarks} {remotebookmarks}\n'
|
|
o a89d614e2364 default/foo
|
|
|
|
|
@ b292c1e3311f bar
|
|
|