Mercurial > hg
comparison tests/test-contrib-dumprevlog.t @ 39707:5abc47d4ca6b
tests: quote PYTHON usage
Python3 defaults to installing under "Program Files".
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 18 Sep 2018 23:47:21 -0400 |
parents | f1186c292d03 |
children | 2f2682f40ea0 |
comparison
equal
deleted
inserted
replaced
39706:030d558c6456 | 39707:5abc47d4ca6b |
---|---|
20 crosschecking files in changesets and manifests | 20 crosschecking files in changesets and manifests |
21 checking files | 21 checking files |
22 checked 3 changesets with 3 changes to 1 files | 22 checked 3 changesets with 3 changes to 1 files |
23 | 23 |
24 Dumping revlog of file a to stdout: | 24 Dumping revlog of file a to stdout: |
25 $ $PYTHON "$CONTRIBDIR/dumprevlog" .hg/store/data/a.i | 25 $ "$PYTHON" "$CONTRIBDIR/dumprevlog" .hg/store/data/a.i |
26 file: .hg/store/data/a.i | 26 file: .hg/store/data/a.i |
27 node: 183d2312b35066fb6b3b449b84efc370d50993d0 | 27 node: 183d2312b35066fb6b3b449b84efc370d50993d0 |
28 linkrev: 0 | 28 linkrev: 0 |
29 parents: 0000000000000000000000000000000000000000 0000000000000000000000000000000000000000 | 29 parents: 0000000000000000000000000000000000000000 0000000000000000000000000000000000000000 |
30 length: 15 | 30 length: 15 |
52 | 52 |
53 -end- | 53 -end- |
54 | 54 |
55 Dump all revlogs to file repo.dump: | 55 Dump all revlogs to file repo.dump: |
56 | 56 |
57 $ find .hg/store -name "*.i" | sort | xargs $PYTHON "$CONTRIBDIR/dumprevlog" > ../repo.dump | 57 $ find .hg/store -name "*.i" | sort | xargs "$PYTHON" "$CONTRIBDIR/dumprevlog" > ../repo.dump |
58 $ cd .. | 58 $ cd .. |
59 | 59 |
60 Undumping into repo-b: | 60 Undumping into repo-b: |
61 | 61 |
62 $ hg init repo-b | 62 $ hg init repo-b |
63 $ cd repo-b | 63 $ cd repo-b |
64 $ $PYTHON "$CONTRIBDIR/undumprevlog" < ../repo.dump | 64 $ "$PYTHON" "$CONTRIBDIR/undumprevlog" < ../repo.dump |
65 .hg/store/00changelog.i | 65 .hg/store/00changelog.i |
66 .hg/store/00manifest.i | 66 .hg/store/00manifest.i |
67 .hg/store/data/a.i | 67 .hg/store/data/a.i |
68 $ cd .. | 68 $ cd .. |
69 | 69 |