mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
98d9269874
Summary: Create a fork of the Mercurial code that we can use to build server rpms. The hg servers will continue to exist for a few more months while we move the darkstorm and ediscovery use cases off them. In the mean time, we want to start making breaking changes to the client, so let's create a stable copy of the hg code to produce rpms for the hg servers. The fork is based off c7770c78d, the latest hg release. This copies the files as is, then adds some minor tweaks to get it to build: - Disables some lint checks that appear to be bypassed by path - sed replace eden/scm with eden/hg-server - Removed a dependency on scm/telemetry from the edenfs-client tests since scm/telemetry pulls in the original eden/scm/lib/configparser which conflicts with the hg-server conflict parser. allow-large-files Reviewed By: quark-zju Differential Revision: D27632557 fbshipit-source-id: b2f442f4ec000ea08e4d62de068750832198e1f4
103 lines
2.3 KiB
Perl
103 lines
2.3 KiB
Perl
#chg-compatible
|
|
|
|
$ configure mutation-norecord
|
|
$ enable rebase
|
|
|
|
initialize repository
|
|
|
|
$ hg init repo
|
|
$ cd repo
|
|
|
|
$ echo 'a' > a
|
|
$ hg ci -A -m "0"
|
|
adding a
|
|
|
|
$ echo 'b' > b
|
|
$ hg ci -A -m "1"
|
|
adding b
|
|
|
|
$ hg up 'desc(0)'
|
|
0 files updated, 0 files merged, 1 files removed, 0 files unresolved
|
|
$ echo 'c' > c
|
|
$ hg ci -A -m "2"
|
|
adding c
|
|
|
|
$ echo 'd' > d
|
|
$ hg ci -A -m "3"
|
|
adding d
|
|
|
|
$ hg bookmark -r 'desc(1)' one
|
|
$ hg bookmark -r 'desc(3)' two
|
|
$ hg up -q two
|
|
|
|
bookmark list
|
|
|
|
$ hg bookmark
|
|
one 925d80f479bb
|
|
* two 2ae46b1d99a7
|
|
|
|
rebase
|
|
|
|
$ hg rebase -s two -d one
|
|
rebasing 2ae46b1d99a7 "3" (two)
|
|
|
|
$ hg log
|
|
commit: 42e5ed2cdcf4
|
|
bookmark: two
|
|
user: test
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
summary: 3
|
|
|
|
commit: db815d6d32e6
|
|
user: test
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
summary: 2
|
|
|
|
commit: 925d80f479bb
|
|
bookmark: one
|
|
user: test
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
summary: 1
|
|
|
|
commit: f7b1eb17ad24
|
|
user: test
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
summary: 0
|
|
|
|
aborted rebase should restore active bookmark.
|
|
|
|
$ hg up 'desc(1)'
|
|
0 files updated, 0 files merged, 1 files removed, 0 files unresolved
|
|
(leaving bookmark two)
|
|
$ echo 'e' > d
|
|
$ hg ci -A -m "4"
|
|
adding d
|
|
$ hg bookmark three
|
|
$ hg rebase -s three -d two
|
|
rebasing dd7c838e8362 "4" (three)
|
|
merging d
|
|
warning: 1 conflicts while merging d! (edit, then use 'hg resolve --mark')
|
|
unresolved conflicts (see hg resolve, then hg rebase --continue)
|
|
[1]
|
|
$ hg rebase --abort
|
|
rebase aborted
|
|
$ hg bookmark
|
|
one 925d80f479bb
|
|
* three dd7c838e8362
|
|
two 42e5ed2cdcf4
|
|
|
|
after aborted rebase, restoring a bookmark that has been removed should not fail
|
|
|
|
$ hg rebase -s three -d two
|
|
rebasing dd7c838e8362 "4" (three)
|
|
merging d
|
|
warning: 1 conflicts while merging d! (edit, then use 'hg resolve --mark')
|
|
unresolved conflicts (see hg resolve, then hg rebase --continue)
|
|
[1]
|
|
$ hg bookmark -d three
|
|
$ hg rebase --abort
|
|
rebase aborted
|
|
$ hg bookmark
|
|
one 925d80f479bb
|
|
two 42e5ed2cdcf4
|