Mercurial > public > mercurial-scm > hg-stable
diff hgext/largefiles/overrides.py @ 21088:e095626e8676
largefiles: full debugdirstate functionality for largefiles
- just reusing the original command with a mockup repo.
This makes it possible to see dates in the lfdirstate and gives less code
duplication.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Sat, 27 Apr 2013 23:19:52 +0200 |
parents | 3fb2affb023f |
children | 278bd08a2902 |
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py Sat Apr 27 23:19:52 2013 +0200 +++ b/hgext/largefiles/overrides.py Sat Apr 27 23:19:52 2013 +0200 @@ -286,7 +286,9 @@ def overridedebugstate(orig, ui, repo, *pats, **opts): large = opts.pop('large', False) if large: - lfcommands.debugdirstate(ui, repo) + class fakerepo(object): + dirstate = lfutil.openlfdirstate(ui, repo) + orig(ui, fakerepo, *pats, **opts) else: orig(ui, repo, *pats, **opts)