Commits

Yuya Nishihara committed fa06ca5

repomodel: change default of branch filter to allparents=False

It resolves the incongruity of the initial state between repomodel and
repofilter.

Also removed default value from RepoWidget's setBranch(), which is a slot
for RepoFilterBar.branchChanged.

Comments (0)

Files changed (2)

tortoisehg/hgqt/repomodel.py

         for branch in sorted(self.repo.branchtags().keys()):
             self.namedbranch_color(branch)
 
-    def setBranch(self, branch=None, allparents=True):
+    def setBranch(self, branch=None, allparents=False):
         self.filterbranch = branch  # unicode
         self.invalidateCache()
         if self.revset and self.filterbyrevset:

tortoisehg/hgqt/repowidget.py

             self.taskTabsWidget.tabBar().hide()
 
     @pyqtSlot(QString, bool)
-    def setBranch(self, branch, allparents=True):
+    def setBranch(self, branch, allparents):
         'Change the branch filter'
         self.repomodel.setBranch(branch=branch, allparents=allparents)
         self.titleChanged.emit(self.title())