# HG changeset patch # User Sean Farley # Date 1379732374 18000 # Node ID 4944c488f738e42a76a913f9c14d15b9cbce42a9 # Parent 02a8612ddec2b91b3c31897a3d99e5abe7f8ef80 localrepo: use new subrev method of context.py With the machinery in place, we use context.subrev instead of testing for a workingctx directly. This allows more flexibility for later patches that will add memctx to the mix. diff -r 02a8612ddec2 -r 4944c488f738 mercurial/localrepo.py --- a/mercurial/localrepo.py Fri Sep 20 22:07:58 2013 -0500 +++ b/mercurial/localrepo.py Fri Sep 20 21:59:34 2013 -0500 @@ -1556,10 +1556,7 @@ if listsubrepos: for subpath, sub in scmutil.itersubrepos(ctx1, ctx2): - if working: - rev2 = None - else: - rev2 = ctx2.substate[subpath][1] + rev2 = ctx2.subrev(subpath) try: submatch = matchmod.narrowmatcher(subpath, match) s = sub.status(rev2, match=submatch, ignored=listignored,