Mercurial > hg
comparison tests/test-remotefilelog-gcrepack.t @ 40505:b6b2a3d22344
remotefilelog: avoid hard-coding pack names in tests
I'm about to alter the pack format, which alters the content-addressed
name of the pack file. In order to reduce my own confusion I found it
helpful to use an ls | head pipeline since we always want to inspect
the newest pack.
Differential Revision: https://phab.mercurial-scm.org/D4942
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 03 Oct 2018 23:47:43 -0400 |
parents | 3a333a582d7b |
children | 10c10da14c5d |
comparison
equal
deleted
inserted
replaced
40504:64b16de2c66a | 40505:b6b2a3d22344 |
---|---|
48 $TESTTMP/hgcache/master/packs/9a2ea858fe2967db9b6ea4c0ca238881cae9d6eb.histpack | 48 $TESTTMP/hgcache/master/packs/9a2ea858fe2967db9b6ea4c0ca238881cae9d6eb.histpack |
49 $TESTTMP/hgcache/master/packs/f7a942a6e4673d2c7b697fdd926ca2d153831ca4.datapack | 49 $TESTTMP/hgcache/master/packs/f7a942a6e4673d2c7b697fdd926ca2d153831ca4.datapack |
50 | 50 |
51 # Ensure that all file versions were prefetched | 51 # Ensure that all file versions were prefetched |
52 | 52 |
53 $ hg debugdatapack $TESTTMP/hgcache/master/packs/f7a942a6e4673d2c7b697fdd926ca2d153831ca4.datapack | 53 $ hg debugdatapack `ls -ct $TESTTMP/hgcache/master/packs/*.datapack | head -n 1` |
54 $TESTTMP/hgcache/master/packs/f7a942a6e4673d2c7b697fdd926ca2d153831ca4: | 54 $TESTTMP/hgcache/master/packs/f7a942a6e4673d2c7b697fdd926ca2d153831ca4: |
55 x: | 55 x: |
56 Node Delta Base Delta Length Blob Size | 56 Node Delta Base Delta Length Blob Size |
57 1406e7411862 000000000000 2 2 | 57 1406e7411862 000000000000 2 2 |
58 | 58 |
82 $TESTTMP/hgcache/master/packs/9a2ea858fe2967db9b6ea4c0ca238881cae9d6eb.histpack | 82 $TESTTMP/hgcache/master/packs/9a2ea858fe2967db9b6ea4c0ca238881cae9d6eb.histpack |
83 | 83 |
84 # Ensure that file 'x' was garbage collected. It should be GCed because it is not in the keepset | 84 # Ensure that file 'x' was garbage collected. It should be GCed because it is not in the keepset |
85 # and is old (commit date is 0.0 in tests). Ensure that file 'y' is present as it is in the keepset. | 85 # and is old (commit date is 0.0 in tests). Ensure that file 'y' is present as it is in the keepset. |
86 | 86 |
87 $ hg debugdatapack $TESTTMP/hgcache/master/packs/05baa499c6b07f2bf0ea3d2c8151da1cb86f5e33.datapack | 87 $ hg debugdatapack `ls -ct $TESTTMP/hgcache/master/packs/*.datapack | head -n 1` |
88 $TESTTMP/hgcache/master/packs/05baa499c6b07f2bf0ea3d2c8151da1cb86f5e33: | 88 $TESTTMP/hgcache/master/packs/05baa499c6b07f2bf0ea3d2c8151da1cb86f5e33: |
89 y: | 89 y: |
90 Node Delta Base Delta Length Blob Size | 90 Node Delta Base Delta Length Blob Size |
91 50dbc4572b8e 000000000000 3 3 | 91 50dbc4572b8e 000000000000 3 3 |
92 | 92 |
109 $TESTTMP/hgcache/master/packs/9a2ea858fe2967db9b6ea4c0ca238881cae9d6eb.histpack | 109 $TESTTMP/hgcache/master/packs/9a2ea858fe2967db9b6ea4c0ca238881cae9d6eb.histpack |
110 $TESTTMP/hgcache/master/packs/f7a942a6e4673d2c7b697fdd926ca2d153831ca4.datapack | 110 $TESTTMP/hgcache/master/packs/f7a942a6e4673d2c7b697fdd926ca2d153831ca4.datapack |
111 | 111 |
112 # Ensure that all file versions were prefetched | 112 # Ensure that all file versions were prefetched |
113 | 113 |
114 $ hg debugdatapack $TESTTMP/hgcache/master/packs/f7a942a6e4673d2c7b697fdd926ca2d153831ca4.datapack | 114 $ hg debugdatapack `ls -ct $TESTTMP/hgcache/master/packs/*.datapack | head -n 1` |
115 $TESTTMP/hgcache/master/packs/f7a942a6e4673d2c7b697fdd926ca2d153831ca4: | 115 $TESTTMP/hgcache/master/packs/f7a942a6e4673d2c7b697fdd926ca2d153831ca4: |
116 x: | 116 x: |
117 Node Delta Base Delta Length Blob Size | 117 Node Delta Base Delta Length Blob Size |
118 1406e7411862 000000000000 2 2 | 118 1406e7411862 000000000000 2 2 |
119 | 119 |
143 $TESTTMP/hgcache/master/packs/9a2ea858fe2967db9b6ea4c0ca238881cae9d6eb.histpack | 143 $TESTTMP/hgcache/master/packs/9a2ea858fe2967db9b6ea4c0ca238881cae9d6eb.histpack |
144 $TESTTMP/hgcache/master/packs/f7a942a6e4673d2c7b697fdd926ca2d153831ca4.datapack | 144 $TESTTMP/hgcache/master/packs/f7a942a6e4673d2c7b697fdd926ca2d153831ca4.datapack |
145 | 145 |
146 # Ensure that all file versions were prefetched | 146 # Ensure that all file versions were prefetched |
147 | 147 |
148 $ hg debugdatapack $TESTTMP/hgcache/master/packs/f7a942a6e4673d2c7b697fdd926ca2d153831ca4.datapack | 148 $ hg debugdatapack `ls -ct $TESTTMP/hgcache/master/packs/*.datapack | head -n 1` |
149 $TESTTMP/hgcache/master/packs/f7a942a6e4673d2c7b697fdd926ca2d153831ca4: | 149 $TESTTMP/hgcache/master/packs/f7a942a6e4673d2c7b697fdd926ca2d153831ca4: |
150 x: | 150 x: |
151 Node Delta Base Delta Length Blob Size | 151 Node Delta Base Delta Length Blob Size |
152 1406e7411862 000000000000 2 2 | 152 1406e7411862 000000000000 2 2 |
153 | 153 |