Mercurial > hg-git
diff hggit/verify.py @ 731:705f0a2a7c18
verify: add a wrapper function in __init__.py
Upcoming patches will switch to the new-style command decorator instead of the
explicit command table. That doesn't mesh well with top-level command functions
defined in other modules.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Mon, 19 May 2014 18:55:32 -0700 |
parents | 1e3e4ff9a25a |
children | 54dd2b9bd68d |
line wrap: on
line diff
--- a/hggit/verify.py Mon May 19 18:48:40 2014 -0700 +++ b/hggit/verify.py Mon May 19 18:55:32 2014 -0700 @@ -16,7 +16,7 @@ from dulwich import diff_tree from dulwich.objects import Commit, S_IFGITLINK -def verify(ui, repo, **opts): +def verify(ui, repo, hgctx): '''verify that a Mercurial rev matches the corresponding Git rev Given a Mercurial revision that has a corresponding Git revision in the map, @@ -24,8 +24,6 @@ corresponding Git revision. ''' - hgctx = scmutil.revsingle(repo, opts.get('rev'), '.') - handler = repo.githandler gitsha = handler.map_git_get(hgctx.hex())