sapling/tests
Siddharth Agarwal 89c409af60 verify: add new command to verify the contents of a Mercurial rev
Since the Git to Mercurial conversion process is incremental, it's at risk of
missing files, or recording files the wrong way, or recording the wrong commit
metadata. Add a command called 'gverify' that can verify the contents of a
particular Mercurial rev against the corresponding Git commit.

Currently, this is limited to checking file names, flags and contents, but this
can be made as robust as desired. Further additions will probably require
refactoring git_handler.py a bit though.

This function is pretty fast: on a Linux machine with a warm cache, verifying a
repository with around 50,000 files takes just 20 seconds. There is scope for
further improvement through parallelization, but conducting tree walks in
parallel is non-trivial with the current worker infrastructure in Mercurial.
2014-02-26 14:19:24 -08:00
..
hghave tests: pull in hghave 2012-10-28 21:05:51 -04:00
hghave.py tests: pull in hghave 2012-10-28 21:05:51 -04:00
killdaemons.py tests: upgrade run-tests.py 2014-02-19 21:49:06 -08:00
latin-1-encoding tests: use fn_git_commit in test-encoding.t 2012-11-03 22:36:13 -04:00
run-tests.py tests: upgrade run-tests.py 2014-02-19 21:49:06 -08:00
test-bookmark-workflow.t tests: extract git command-line client and dulwich requirements into testutil 2012-11-03 19:11:50 -04:00
test-branch-bookmark-suffix.t Fixes #54 | option branch_bookmark_suffix doesn't move bookmarks along 2013-07-01 16:04:53 -03:00
test-clone.t git-handler: turn refs from None to {} so that empty git repos can convert 2013-12-03 16:55:17 -05:00
test-conflict-1.t push: add more output about what was added (issue #64) 2013-01-06 01:46:57 -05:00
test-conflict-2.t push: add more output about what was added (issue #64) 2013-01-06 01:46:57 -05:00
test-convergedmerge.t verify: add new command to verify the contents of a Mercurial rev 2014-02-26 14:19:24 -08:00
test-empty-working-tree.t verify: add new command to verify the contents of a Mercurial rev 2014-02-26 14:19:24 -08:00
test-encoding.t push: add more output about what was added (issue #64) 2013-01-06 01:46:57 -05:00
test-file-removal.t push: add more output about what was added (issue #64) 2013-01-06 01:46:57 -05:00
test-git-clone.t verify: add new command to verify the contents of a Mercurial rev 2014-02-26 14:19:24 -08:00
test-git-submodules.t verify: add new command to verify the contents of a Mercurial rev 2014-02-26 14:19:24 -08:00
test-git-tags.t tests: dulwich is now smarter about sending fewer objects, update output 2013-12-13 12:41:41 -05:00
test-git-workflow.t tests: convert echos to comments 2012-11-03 19:14:17 -04:00
test-gitignore.t gitignore: gate feature on dirstate having rootcache and ignore having readpats 2013-12-14 11:19:25 -05:00
test-help.t tests: extract extension configuration into a testutil library 2012-10-30 20:03:26 -04:00
test-hg-author.t tests: dulwich is now smarter about sending fewer objects, update output 2013-12-13 12:41:41 -05:00
test-hg-branch.t tests: dulwich is now smarter about sending fewer objects, update output 2013-12-13 12:41:41 -05:00
test-hg-tags-invalid.t tests: dulwich is now smarter about sending fewer objects, update output 2013-12-13 12:41:41 -05:00
test-hg-tags.t tests: dulwich is now smarter about sending fewer objects, update output 2013-12-13 12:41:41 -05:00
test-incoming.t overlayrevlog: handle root commits correctly 2014-02-25 00:23:12 -08:00
test-keywords.t tests: extract git command-line client and dulwich requirements into testutil 2012-11-03 19:11:50 -04:00
test-merge.t push: add more output about what was added (issue #64) 2013-01-06 01:46:57 -05:00
test-octopus.t verify: add new command to verify the contents of a Mercurial rev 2014-02-26 14:19:24 -08:00
test-outgoing.t tests: fix output expectations from 3ff09f0 2013-12-15 15:25:31 -05:00
test-pull-after-strip.t tests: remove mercurial version check from test-pull-after-strip.t 2012-11-03 19:20:39 -04:00
test-pull.t tests: extract git command-line client and dulwich requirements into testutil 2012-11-03 19:11:50 -04:00
test-push-r.t tests: extract git command-line client and dulwich requirements into testutil 2012-11-03 19:11:50 -04:00
test-push.t tests: fix output expectations from 3ff09f0 2013-12-15 15:25:31 -05:00
test-subrepos.t test-subrepos.t: hide output from newer hg versions about active bookmarks 2013-12-14 12:00:09 -05:00
test-timezone.t test-timezone.t: add missing (but needed) trailing whitespace 2013-12-13 12:42:55 -05:00
test-tree-decomposition.t test-tree-decomposition: work around git command format changes 2013-08-28 11:27:13 -04:00
test-url-parsing.py tests: add check for dulwich in test-url-parsing.py 2012-10-30 23:16:07 -04:00
test-url-parsing.py.out test-url-parsing.py: add a test for a username that starts with a number 2012-04-20 21:16:32 -05:00
test-verify-fail.t verify: add new command to verify the contents of a Mercurial rev 2014-02-26 14:19:24 -08:00
testutil tests: use fn_git_commit in test-encoding.t 2012-11-03 22:36:13 -04:00