Commits

Yuya Nishihara committed 950ecda

revert: inline access to raw repo object

Comments (0)

Files changed (1)

tortoisehg/hgqt/revert.py

         self.layout().addWidget(bbox)
         self.bbox = bbox
 
-    @property
-    def repo(self):
-        return self._repoagent.rawRepo()
-
     def _addRevertTargetCombo(self, rev):
         if rev is None:
             raise ValueError('Cannot revert to working directory')
         self.revcombo = QComboBox()
         revnames = ['revision %d' % rev]
-        ctx = self.repo[rev]
+        repo = self._repoagent.rawRepo()
+        ctx = repo[rev]
         parents = ctx.parents()[:2]
         if len(parents) == 1:
             parentdesctemplate = ("revision %d's parent (i.e. revision %d)",)