Commits

Yuya Nishihara committed fed9cd1

manifestmodel: divide closure per repository where tree nodes are populated

Comments (0)

Files changed (1)

tortoisehg/hgqt/manifestmodel.py

             srepo = ctx.sub(path)._repo
             if srev in srepo:
                 e.ctx = srepo[srev]
-                addrepocontentstotree(e)
+                _populaterepo(e, srepo, statusfilter, namefilter)
 
-    def addrepocontentstotree(roote):
-        if 'S' in statusfilter:
-            addsubrepostotree(roote)
-        status, uncleanpaths, files = getctxtreeinfo(roote.ctx)
-        addfilestotree(roote, files, status, uncleanpaths)
-
-    addrepocontentstotree(roote)
+    if 'S' in statusfilter:
+        addsubrepostotree(roote)
+    status, uncleanpaths, files = getctxtreeinfo(roote.ctx)
+    addfilestotree(roote, files, status, uncleanpaths)
 
 
 class ManifestCompleter(QCompleter):