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
100 lines
2.1 KiB
Perl
100 lines
2.1 KiB
Perl
#chg-compatible
|
|
|
|
$ disable treemanifest
|
|
https://bz.mercurial-scm.org/1175
|
|
|
|
$ newrepo repo
|
|
$ touch a
|
|
$ hg ci -Am0
|
|
adding a
|
|
|
|
$ hg mv a a1
|
|
$ hg ci -m1
|
|
|
|
$ hg co 'desc(0)'
|
|
1 files updated, 0 files merged, 1 files removed, 0 files unresolved
|
|
|
|
$ hg mv a a2
|
|
$ hg up
|
|
note: possible conflict - a was renamed multiple times to:
|
|
a2
|
|
a1
|
|
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
|
|
|
$ hg ci -m2
|
|
|
|
$ touch a
|
|
$ hg ci -Am3
|
|
adding a
|
|
|
|
$ hg mv a b
|
|
$ hg ci -Am4 a
|
|
|
|
$ hg ci --debug --traceback -Am5 b
|
|
committing files:
|
|
b
|
|
warning: can't find ancestor for 'b' copied from 'a'!
|
|
committing manifest
|
|
committing changelog
|
|
committed 83a687e8a97c80992ba385bbfd766be181bfb1d1
|
|
|
|
$ hg verify
|
|
checking changesets
|
|
checking manifests
|
|
crosschecking files in changesets and manifests
|
|
checking files
|
|
4 files, 6 changesets, 4 total revisions
|
|
|
|
$ hg export --git tip
|
|
# HG changeset patch
|
|
# User test
|
|
# Date 0 0
|
|
# Thu Jan 01 00:00:00 1970 +0000
|
|
# Node ID 83a687e8a97c80992ba385bbfd766be181bfb1d1
|
|
# Parent 1d1625283f71954f21d14c3d44d0ad3c019c597f
|
|
5
|
|
|
|
diff --git a/b b/b
|
|
new file mode 100644
|
|
|
|
https://bz.mercurial-scm.org/show_bug.cgi?id=4476
|
|
|
|
$ hg init foo
|
|
$ cd foo
|
|
$ touch a && hg ci -Aqm a
|
|
$ hg mv a b
|
|
$ echo b1 >> b
|
|
$ hg ci -Aqm b1
|
|
$ hg up 'desc(a)'
|
|
1 files updated, 0 files merged, 1 files removed, 0 files unresolved
|
|
$ hg mv a b
|
|
$ echo b2 >> b
|
|
$ hg ci -Aqm b2
|
|
$ hg graft 'desc(b1)'
|
|
grafting 5974126fad84 "b1"
|
|
merging b
|
|
warning: 1 conflicts while merging b! (edit, then use 'hg resolve --mark')
|
|
abort: unresolved conflicts, can't continue
|
|
(use 'hg resolve' and 'hg graft --continue')
|
|
[255]
|
|
$ echo a > b
|
|
$ echo b3 >> b
|
|
$ hg resolve --mark b
|
|
(no more unresolved files)
|
|
continue: hg graft --continue
|
|
$ hg graft --continue
|
|
grafting 5974126fad84 "b1"
|
|
warning: can't find ancestor for 'b' copied from 'a'!
|
|
$ hg log -f b -T 'changeset: {node|short}\nsummary: {desc}\n\n'
|
|
changeset: 376d30ccffc0
|
|
summary: b1
|
|
|
|
changeset: 416baaa2e5e4
|
|
summary: b2
|
|
|
|
changeset: 3903775176ed
|
|
summary: a
|
|
|
|
|
|
|