Commits

Yuya Nishihara committed 2d7c262

cmdui: eliminate extra unicode conversion of repo root in progress handler

The other progress values are kept in unicode.

  • Participants
  • Parent commits eb914b6

Comments (0)

Files changed (2)

File tortoisehg/hgqt/cmdui.py

 
     @pyqtSlot(unicode, cmdcore.ProgressMessage)
     def setRepoProgress(self, root, progress):
-        self.progress(*(progress + (hglib.fromunicode(root),)))
+        self.progress(*(progress + (unicode(root),)))
 
 
 def updateStatusMessage(stbar, session):

File tortoisehg/hgqt/workbench.py

         rw = RepoWidget(repoagent, self, bundle=bundle)
         rw.showMessageSignal.connect(self.showMessage)
         rw.progress.connect(lambda tp, p, i, u, tl:
-            self.statusbar.progress(tp, p, i, u, tl, rw.repo.root))
+            self.statusbar.progress(tp, p, i, u, tl, rw.repoRootPath()))
         rw.makeLogVisible.connect(self.log.setShown)
         rw.revisionSelected.connect(self.updateHistoryActions)
         rw.repoLinkClicked.connect(self.openLinkedRepo)