1. TortoiseHg
  2. TortoiseHg
  3. thg

Commits

Yuya Nishihara  committed e38f832

rename: complete src/dest path with manifest

  • Participants
  • Parent commits 55a9702
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/rename.py

View file
  • Ignore whitespace
 from mercurial import util, error
 
 from tortoisehg.hgqt.i18n import _
-from tortoisehg.hgqt import cmdui, qtlib, thgrepo
+from tortoisehg.hgqt import cmdui, qtlib, thgrepo, manifestmodel
 from tortoisehg.util import hglib, paths
 
 class RenameDialog(QDialog):
         self.dest_btn = QPushButton(_('Browse...'))
         self.copy_chk = QCheckBox(_('Copy source -> destination'))
 
+        comp = manifestmodel.ManifestCompleter(self)
+        comp.setModel(manifestmodel.ManifestModel(self.repo, parent=comp))
+        self.src_txt.setCompleter(comp)
+        self.dest_txt.setCompleter(comp)
+
         # some extras
         self.dummy_lbl = QLabel('')
         self.hgcmd_lbl = QLabel(_('Hg command:'))