2016-07-12 22:39:34 +03:00
|
|
|
$ . $TESTDIR/require-ext.sh remotenames
|
2015-07-10 21:40:30 +03:00
|
|
|
$ cat >> $HGRCPATH << EOF
|
|
|
|
> [extensions]
|
2017-06-17 04:31:25 +03:00
|
|
|
> reset=$TESTDIR/../hgext3rd/reset.py
|
2015-07-10 21:40:30 +03:00
|
|
|
> 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
|
2016-01-08 05:30:24 +03:00
|
|
|
$ hg reset --clean "default/foo^"
|
2015-07-10 21:40:30 +03:00
|
|
|
$ hg log -G -T '{node|short} {bookmarks} {remotebookmarks}\n'
|
|
|
|
o a89d614e2364 default/foo
|
|
|
|
|
|
|
|
|
@ b292c1e3311f bar
|
|
|
|
|