Commits

Steve Borho committed feaa421

shelve: do not use repo.opener to create new shelf files (refs #832)

If there is a repository in the shelves folder, the repo opener will abort.
To do this cleanly, we'll need to create a shelve opener much like MQ's.

  • Participants
  • Parent commits 589ad6c
  • Branches stable

Comments (0)

Files changed (1)

tortoisehg/hgqt/shelve.py

                 qtlib.ErrorMsgBox(_('File already exists'),
                                   _('A shelf file of that name already exists'))
                 return
-            self.repo.opener(fn, 'wb').write('')
+            f = open(shelfpath, "wb")
+            f.close()
             self.showMessage(_('New shelf created'))
             self.refreshCombos()
             if shelfpath in self.shelves: