equal
deleted
inserted
replaced
1 Set vars: |
1 Set vars: |
2 |
2 |
3 $ CONTRIBDIR=$TESTDIR/../contrib |
3 $ CONTRIBDIR="$TESTDIR/../contrib" |
4 |
4 |
5 Prepare repo-a: |
5 Prepare repo-a: |
6 |
6 |
7 $ hg init repo-a |
7 $ hg init repo-a |
8 $ cd repo-a |
8 $ cd repo-a |
24 checking files |
24 checking files |
25 1 files, 3 changesets, 3 total revisions |
25 1 files, 3 changesets, 3 total revisions |
26 |
26 |
27 Dumping revlog of file a to stdout: |
27 Dumping revlog of file a to stdout: |
28 |
28 |
29 $ python $CONTRIBDIR/dumprevlog .hg/store/data/a.i |
29 $ python "$CONTRIBDIR/dumprevlog" .hg/store/data/a.i |
30 file: .hg/store/data/a.i |
30 file: .hg/store/data/a.i |
31 node: 183d2312b35066fb6b3b449b84efc370d50993d0 |
31 node: 183d2312b35066fb6b3b449b84efc370d50993d0 |
32 linkrev: 0 |
32 linkrev: 0 |
33 parents: 0000000000000000000000000000000000000000 0000000000000000000000000000000000000000 |
33 parents: 0000000000000000000000000000000000000000 0000000000000000000000000000000000000000 |
34 length: 15 |
34 length: 15 |
56 |
56 |
57 -end- |
57 -end- |
58 |
58 |
59 Dump all revlogs to file repo.dump: |
59 Dump all revlogs to file repo.dump: |
60 |
60 |
61 $ find .hg/store -name "*.i" | sort | xargs python $CONTRIBDIR/dumprevlog > ../repo.dump |
61 $ find .hg/store -name "*.i" | sort | xargs python "$CONTRIBDIR/dumprevlog" > ../repo.dump |
62 $ cd .. |
62 $ cd .. |
63 |
63 |
64 Undumping into repo-b: |
64 Undumping into repo-b: |
65 |
65 |
66 $ hg init repo-b |
66 $ hg init repo-b |
67 $ cd repo-b |
67 $ cd repo-b |
68 $ python $CONTRIBDIR/undumprevlog < ../repo.dump |
68 $ python "$CONTRIBDIR/undumprevlog" < ../repo.dump |
69 .hg/store/00changelog.i |
69 .hg/store/00changelog.i |
70 .hg/store/00manifest.i |
70 .hg/store/00manifest.i |
71 .hg/store/data/a.i |
71 .hg/store/data/a.i |
72 $ cd .. |
72 $ cd .. |
73 |
73 |
104 [1] |
104 [1] |
105 |
105 |
106 |
106 |
107 Test shrink-revlog: |
107 Test shrink-revlog: |
108 $ cd repo-a |
108 $ cd repo-a |
109 $ hg --config extensions.shrink=$CONTRIBDIR/shrink-revlog.py shrink |
109 $ hg --config extensions.shrink="$CONTRIBDIR/shrink-revlog.py" shrink |
110 shrinking $TESTTMP/repo-a/.hg/store/00manifest.i (glob) |
110 shrinking $TESTTMP/repo-a/.hg/store/00manifest.i (glob) |
111 reading revs |
111 reading revs |
112 sorting revs |
112 sorting revs |
113 writing revs |
113 writing revs |
114 old file size: 324 bytes ( 0.0 MiB) |
114 old file size: 324 bytes ( 0.0 MiB) |