Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.1, 2.1.1, and 2.1.2

stable 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.

Changeset feaa42186d07

Parent 589ad6cefbd3

by Steve Borho

Changes to one file · Browse files at feaa42186d07 Showing diff from parent 589ad6cefbd3 Diff from another changeset...

 
265
266
267
268
 
 
269
270
271
 
265
266
267
 
268
269
270
271
272
@@ -265,7 +265,8 @@
  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: