sapling/eden/scm/tests/test-absorb-remotefilelog-segments.t
Jun Wu c785e333af remotefilelog: do not resolve linkrev for changelog.add
Summary: The value of linkrev is invalid with segmented changelog. Do not resolve it.

Reviewed By: sfilipco

Differential Revision: D23036079

fbshipit-source-id: 8f8b097458bc694327db6ba4e2dc4107bdf44157
2020-08-21 13:00:45 -07:00

66 lines
1009 B
Perl

$ setconfig format.use-segmented-changelog=1
$ enable absorb remotefilelog
Create repo
$ newrepo
$ echo remotefilelog >> .hg/requires
$ drawdag << 'EOS'
> C
> |
> B
> |
> A
> EOS
$ hg up $C -q
Edit & absorb
$ echo 1 >> A
$ echo 2 >> B
$ hg absorb
showing changes for A
@@ -0,1 +0,1 @@
426bada -A
426bada +A1
showing changes for B
@@ -0,1 +0,1 @@
1124789 -B
1124789 +B2
2 changesets affected
1124789 B
426bada A
apply changes (yn)? y
2 of 2 chunks applied
Check result
$ hg log -Gpr 'all()' --config diff.git=1 -T '{desc}\n'
@ C
| diff --git a/C b/C
| new file mode 100644
| --- /dev/null
| +++ b/C
| @@ -0,0 +1,1 @@
| +C
| \ No newline at end of file
|
o B
| diff --git a/B b/B
| new file mode 100644
| --- /dev/null
| +++ b/B
| @@ -0,0 +1,1 @@
| +B2
|
o A
diff --git a/A b/A
new file mode 100644
--- /dev/null
+++ b/A
@@ -0,0 +1,1 @@
+A1