Mercurial > hg
comparison tests/test-obsolete.t @ 24681:33ab99a6ad9b
archive: look for first visible revision to build repo identity (issue4591)
No test for the case where all revisions are hidden because "archive" command
aborts if the target revision is null.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 08 Apr 2015 23:30:02 +0900 |
parents | 7977d35df13b |
children | c00e4338fa4b |
comparison
equal
deleted
inserted
replaced
24680:0974d3a0be29 | 24681:33ab99a6ad9b |
---|---|
248 o 1:7c3bad9141dc (public) [ ] add b | 248 o 1:7c3bad9141dc (public) [ ] add b |
249 | | 249 | |
250 o 0:1f0dee641bb7 (public) [ ] add a | 250 o 0:1f0dee641bb7 (public) [ ] add a |
251 | 251 |
252 | 252 |
253 $ cd .. | |
254 | |
255 Revision 0 is hidden | |
256 -------------------- | |
257 | |
258 $ hg init rev0hidden | |
259 $ cd rev0hidden | |
260 | |
261 $ mkcommit kill0 | |
262 $ hg up -q null | |
263 $ hg debugobsolete `getid kill0` | |
264 $ mkcommit a | |
265 $ mkcommit b | |
266 | |
267 Should pick the first visible revision as "repo" node | |
268 | |
269 $ hg archive ../archive-null | |
270 $ cat ../archive-null/.hg_archival.txt | |
271 repo: 1f0dee641bb7258c56bd60e93edfa2405381c41e | |
272 node: 7c3bad9141dcb46ff89abf5f61856facd56e476c | |
273 branch: default | |
274 latesttag: null | |
275 latesttagdistance: 2 | |
276 changessincelatesttag: 2 | |
253 | 277 |
254 | 278 |
255 $ cd .. | 279 $ cd .. |
256 | 280 |
257 Exchange Test | 281 Exchange Test |