mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +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
84 lines
2.1 KiB
Perl
84 lines
2.1 KiB
Perl
#chg-compatible
|
|
|
|
$ enable amend rebase remotenames
|
|
$ setconfig experimental.evolution=obsolete
|
|
$ setconfig experimental.narrow-heads=true
|
|
$ setconfig visibility.enabled=true
|
|
$ setconfig mutation.record=true mutation.enabled=true mutation.date="0 0"
|
|
|
|
Setup
|
|
$ newrepo
|
|
$ drawdag --print << EOS
|
|
> E I
|
|
> | |
|
|
> D G H
|
|
> |/|/
|
|
> C F
|
|
> |/
|
|
> B
|
|
> |
|
|
> A
|
|
> EOS
|
|
426bada5c675 A
|
|
112478962961 B
|
|
26805aba1e60 C
|
|
f585351a92f8 D
|
|
9bc730a19041 E
|
|
33441538d4aa F
|
|
bd15fabcb808 G
|
|
90ad90e692f7 H
|
|
e5dcb50d5e3c I
|
|
|
|
Bundle up some of the commits and strip them from the repo.
|
|
$ hg bundle -r "children($B)::" --base $B -f $TESTTMP/bundle.hg
|
|
7 changesets found
|
|
|
|
$ hg debugstrip -r "children($B)::"
|
|
|
|
The heads are changed when looking at the bundle.
|
|
|
|
$ hg log -R $TESTTMP/bundle.hg -r "head()" -T '{node} {desc}\n'
|
|
bd15fabcb8083473489d54a8edc58126c1facc53 G
|
|
9bc730a19041f9ec7cb33c626e811aa233efb18c E
|
|
e5dcb50d5e3c977ce2bce38e15cabb0a8761c8f0 I
|
|
|
|
But this doesn't affect the real repo.
|
|
|
|
$ hg log -r "head()" -T '{node} {desc}\n'
|
|
112478962961147124edd43549aedd1a335e44bf B
|
|
|
|
Add some more commits to the main repo so that B is no longer a head. Hide one of them.
|
|
|
|
$ drawdag --print << EOS
|
|
> J K
|
|
> |/
|
|
> $B
|
|
> EOS
|
|
112478962961 112478962961147124edd43549aedd1a335e44bf
|
|
696cbb89a420 J
|
|
200d7f7cf08d K
|
|
|
|
$ hg hide $K
|
|
hiding commit 200d7f7cf08d "K"
|
|
1 changeset hidden
|
|
|
|
Logging the heads still works.
|
|
|
|
$ hg log -R $TESTTMP/bundle.hg -r "head()" -T '{node} {desc}\n'
|
|
696cbb89a420ebe8fafeb74ea2da0597a5ae2efa J
|
|
bd15fabcb8083473489d54a8edc58126c1facc53 G
|
|
9bc730a19041f9ec7cb33c626e811aa233efb18c E
|
|
e5dcb50d5e3c977ce2bce38e15cabb0a8761c8f0 I
|
|
|
|
$ hg log -r "head()" -T '{node} {desc}\n'
|
|
696cbb89a420ebe8fafeb74ea2da0597a5ae2efa J
|
|
|
|
Looking at the 'hidden' commits via commit hashes still works.
|
|
|
|
$ hg log -R $TESTTMP/bundle.hg -r "head()+$K" -T '{node} {desc}\n'
|
|
696cbb89a420ebe8fafeb74ea2da0597a5ae2efa J
|
|
bd15fabcb8083473489d54a8edc58126c1facc53 G
|
|
9bc730a19041f9ec7cb33c626e811aa233efb18c E
|
|
e5dcb50d5e3c977ce2bce38e15cabb0a8761c8f0 I
|
|
200d7f7cf08dd0246ad02cac6df356705cf0adab K
|