tests/test-relink.out
author Patrick Mezard <pmezard@gmail.com>
Fri, 08 Jan 2010 22:30:07 +0100
branchstable
changeset 10217 2bbb4c8eb27e
child 10218 750b7a4f01f6
permissions -rw-r--r--
Add test for relink extension

% create source repository
adding a
adding b
% clone and pull to break links
requesting all changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 2 changes to 2 files
updating to branch default
2 files updated, 0 files merged, 0 files removed, 0 files unresolved
created new head
% relink
relinking .hg/store
collected 4 candidate storage files
not linkable: 00changelog.i
not linkable: 00manifest.i
not linkable: data/b.i
pruned down to 1 probably relinkable files
relink: data/a.i 1/1  files (1e+02%)
relinked 1 files (136 bytes reclaimed)
% check hardlinks
repo/.hg/store/data/a.i == clone/.hg/store/data/a.i
repo/.hg/store/data/b.i != clone/.hg/store/data/b.i