|
1 #require reporevlogstore |
|
2 |
|
3 $ CONTRIBDIR="$TESTDIR/../contrib" |
|
4 |
|
5 $ hg init repo-a |
|
6 $ cd repo-a |
|
7 |
|
8 $ echo this is file a > a |
|
9 $ hg add a |
|
10 $ hg commit -m first |
|
11 |
|
12 $ echo adding to file a >> a |
|
13 $ hg commit -m second |
|
14 |
|
15 $ echo adding more to file a >> a |
|
16 $ hg commit -m third |
|
17 $ hg verify |
|
18 checking changesets |
|
19 checking manifests |
|
20 crosschecking files in changesets and manifests |
|
21 checking files |
|
22 1 files, 3 changesets, 3 total revisions |
|
23 |
|
24 Dumping revlog of file a to stdout: |
|
25 $ $PYTHON "$CONTRIBDIR/dumprevlog" .hg/store/data/a.i |
|
26 file: .hg/store/data/a.i |
|
27 node: 183d2312b35066fb6b3b449b84efc370d50993d0 |
|
28 linkrev: 0 |
|
29 parents: 0000000000000000000000000000000000000000 0000000000000000000000000000000000000000 |
|
30 length: 15 |
|
31 -start- |
|
32 this is file a |
|
33 |
|
34 -end- |
|
35 node: b1047953b6e6b633c0d8197eaa5116fbdfd3095b |
|
36 linkrev: 1 |
|
37 parents: 183d2312b35066fb6b3b449b84efc370d50993d0 0000000000000000000000000000000000000000 |
|
38 length: 32 |
|
39 -start- |
|
40 this is file a |
|
41 adding to file a |
|
42 |
|
43 -end- |
|
44 node: 8c4fd1f7129b8cdec6c7f58bf48fb5237a4030c1 |
|
45 linkrev: 2 |
|
46 parents: b1047953b6e6b633c0d8197eaa5116fbdfd3095b 0000000000000000000000000000000000000000 |
|
47 length: 54 |
|
48 -start- |
|
49 this is file a |
|
50 adding to file a |
|
51 adding more to file a |
|
52 |
|
53 -end- |
|
54 |
|
55 Dump all revlogs to file repo.dump: |
|
56 |
|
57 $ find .hg/store -name "*.i" | sort | xargs $PYTHON "$CONTRIBDIR/dumprevlog" > ../repo.dump |
|
58 $ cd .. |
|
59 |
|
60 Undumping into repo-b: |
|
61 |
|
62 $ hg init repo-b |
|
63 $ cd repo-b |
|
64 $ $PYTHON "$CONTRIBDIR/undumprevlog" < ../repo.dump |
|
65 .hg/store/00changelog.i |
|
66 .hg/store/00manifest.i |
|
67 .hg/store/data/a.i |
|
68 $ cd .. |
|
69 |
|
70 Rebuild fncache with clone --pull: |
|
71 |
|
72 $ hg clone --pull -U repo-b repo-c |
|
73 requesting all changes |
|
74 adding changesets |
|
75 adding manifests |
|
76 adding file changes |
|
77 added 3 changesets with 3 changes to 1 files |
|
78 new changesets de1da620e7d8:46946d278c50 |
|
79 |
|
80 Verify: |
|
81 |
|
82 $ hg -R repo-c verify |
|
83 checking changesets |
|
84 checking manifests |
|
85 crosschecking files in changesets and manifests |
|
86 checking files |
|
87 1 files, 3 changesets, 3 total revisions |
|
88 |
|
89 Compare repos: |
|
90 |
|
91 $ hg -R repo-c incoming repo-a |
|
92 comparing with repo-a |
|
93 searching for changes |
|
94 no changes found |
|
95 [1] |
|
96 |
|
97 $ hg -R repo-a incoming repo-c |
|
98 comparing with repo-c |
|
99 searching for changes |
|
100 no changes found |
|
101 [1] |