Mercurial > hg
comparison tests/test-revlog-v2.t @ 47449:da3fb8c10caa
revlogv2: also test that local clone works
This is now the case so lets add a test.
Differential Revision: https://phab.mercurial-scm.org/D10857
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 08 Jun 2021 02:34:59 +0200 |
parents | e6292eb33384 |
children | 9cecc222c536 |
comparison
equal
deleted
inserted
replaced
47448:d370256636fe | 47449:da3fb8c10caa |
---|---|
16 $ cat >> $HGRCPATH << EOF | 16 $ cat >> $HGRCPATH << EOF |
17 > [experimental] | 17 > [experimental] |
18 > revlogv2 = enable-unstable-format-and-corrupt-my-data | 18 > revlogv2 = enable-unstable-format-and-corrupt-my-data |
19 > EOF | 19 > EOF |
20 | 20 |
21 $ hg init empty-repo | 21 $ hg init new-repo |
22 $ cd empty-repo | 22 $ cd new-repo |
23 $ cat .hg/requires | 23 $ cat .hg/requires |
24 dotencode | 24 dotencode |
25 exp-dirstate-v2 (dirstate-v2 !) | 25 exp-dirstate-v2 (dirstate-v2 !) |
26 exp-revlogv2.2 | 26 exp-revlogv2.2 |
27 fncache | 27 fncache |
92 .hg/store/00changelog.i | 92 .hg/store/00changelog.i |
93 .hg/store/00manifest-05a21d65.idx | 93 .hg/store/00manifest-05a21d65.idx |
94 .hg/store/00manifest-43c37dde.dat | 94 .hg/store/00manifest-43c37dde.dat |
95 .hg/store/00manifest-e2c9362a.sda | 95 .hg/store/00manifest-e2c9362a.sda |
96 .hg/store/00manifest.i | 96 .hg/store/00manifest.i |
97 | |
98 Local clone works | |
99 ----------------- | |
100 | |
101 $ hg clone . ../cloned-repo | |
102 updating to branch default | |
103 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
104 $ hg tip | tee ../tip-new | |
105 changeset: 0:96ee1d7354c4 | |
106 tag: tip | |
107 user: test | |
108 date: Thu Jan 01 00:00:00 1970 +0000 | |
109 summary: initial | |
110 | |
111 $ hg tip -R ../cloned-repo | tee ../tip-cloned | |
112 changeset: 0:96ee1d7354c4 | |
113 tag: tip | |
114 user: test | |
115 date: Thu Jan 01 00:00:00 1970 +0000 | |
116 summary: initial | |
117 | |
118 | |
119 The two repository should be identical, this diff MUST be empty | |
120 | |
121 $ cmp ../tip-new ../tip-cloned || diff -U8 ../tip-new ../tip-cloned |