Commits

Yuya Nishihara  committed 33b9308

clone: open patch folder dialog at source repository

MQ patches are generally placed there.

  • Participants
  • Parent commits 41f14e3
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/clone.py

     def onBrowseQclone(self):
         FD = QFileDialog
         caption = _("Select patch folder")
-        upath = FD.getExistingDirectory(self, caption, \
-            self.qclone_txt.text(), QFileDialog.ShowDirsOnly)
+        upatchroot = os.path.join(unicode(self.src_combo.currentText()), '.hg')
+        upath = FD.getExistingDirectory(self, caption, upatchroot,
+                                        QFileDialog.ShowDirsOnly)
         if upath:
             path = hglib.fromunicode(upath).replace('/', os.sep)
             src = hglib.fromunicode(self.src_combo.currentText())