Commits

Angel Ezquerra committed fe191b1

reporegistry: ignore subgroups when calculating the common path (fixes #1297)

This does not add proper subgroup support for the repo registry, but at least
will ensure that TortoiseHg will not crash and will do the right thing if a user
manually modifies the repo registry XML file to add subgroups manually.

  • Participants
  • Parent commits 9adf9d8
  • Branches stable

Comments (0)

Files changed (1)

tortoisehg/hgqt/repotreeitem.py

             self._commonpath = ''
         else:
             childs = [os.path.normcase(child.rootpath())
-                        for child in self.childs]
+                      for child in self.childs
+                      if not isinstance(child, RepoGroupItem)]
             self._commonpath = os.path.dirname(os.path.commonprefix(childs))
 
         return self._commonpath