mercurial/localrepo.py
changeset 21588 4944c488f738
parent 21483 6adfc311eee8
child 21591 660ef8ca8c3c
--- 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,