Commits

Yuya Nishihara committed d5a06a5

history: use patch directory specified qqueue command

It fixes IOError [Errno 2] at changeset.py, pf = open(patchfile),
occured when you're using multiple patch queues.

Comments (0)

Files changed (1)

tortoisehg/hgtk/history.py

 
     def patch_selected(self, mqwidget, revid, patchname):
         if revid < 0:
-            patchfile = os.path.join(self.repo.root, '.hg', 'patches', patchname)
+            patchfile = os.path.join(self.repo.mq.path, patchname)
             self.currevid = self.lastrevid = None
             self.changeview.load_patch_details(patchfile)
         else: