2019-12-10 02:24:31 +03:00
|
|
|
#chg-compatible
|
|
|
|
|
2015-09-30 23:31:07 +03:00
|
|
|
https://bz.mercurial-scm.org/1502
|
2011-02-24 16:38:50 +03:00
|
|
|
|
|
|
|
Initialize repository
|
|
|
|
|
|
|
|
$ hg init foo
|
|
|
|
$ touch foo/a && hg -R foo commit -A -m "added a"
|
|
|
|
adding a
|
|
|
|
|
|
|
|
$ hg clone foo foo1
|
|
|
|
updating to branch default
|
|
|
|
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
|
|
|
|
|
|
|
$ echo "bar" > foo1/a && hg -R foo1 commit -m "edit a in foo1"
|
|
|
|
$ echo "hi" > foo/a && hg -R foo commit -m "edited a foo"
|
2016-02-03 18:21:11 +03:00
|
|
|
$ hg -R foo1 pull
|
2017-12-11 06:50:57 +03:00
|
|
|
pulling from $TESTTMP/foo
|
2011-02-24 16:38:50 +03:00
|
|
|
searching for changes
|
|
|
|
adding changesets
|
|
|
|
adding manifests
|
|
|
|
adding file changes
|
2019-11-07 21:50:10 +03:00
|
|
|
added 1 changesets with 1 changes to 1 files
|
2011-02-24 16:38:50 +03:00
|
|
|
|
|
|
|
$ hg -R foo1 book branchy
|
|
|
|
$ hg -R foo1 book
|
2020-10-09 08:27:14 +03:00
|
|
|
* branchy e3e522925eff
|
2011-02-24 16:38:50 +03:00
|
|
|
|
|
|
|
Pull. Bookmark should not jump to new head.
|
|
|
|
|
|
|
|
$ echo "there" >> foo/a && hg -R foo commit -m "edited a again"
|
|
|
|
$ hg -R foo1 pull
|
2017-12-11 06:50:57 +03:00
|
|
|
pulling from $TESTTMP/foo
|
2011-02-24 16:38:50 +03:00
|
|
|
searching for changes
|
|
|
|
adding changesets
|
|
|
|
adding manifests
|
|
|
|
adding file changes
|
|
|
|
added 1 changesets with 1 changes to 1 files
|
|
|
|
|
|
|
|
$ hg -R foo1 book
|
2020-10-09 08:27:14 +03:00
|
|
|
* branchy e3e522925eff
|