Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9.2, 1.9.3, and 2.0

shelve: auto select new shelf file in right side browser

Changeset 4b6037343bad

Parent 09ab8accf99d

by Steve Borho

Changes to one file · Browse files at 4b6037343bad Showing diff from parent 09ab8accf99d Diff from another changeset...

 
218
219
220
221
 
 
222
223
224
225
226
 
 
 
227
228
229
230
231
232
 
218
219
220
 
221
222
223
224
225
226
227
228
229
230
231
232
 
233
234
235
@@ -218,15 +218,18 @@
  shelve = hglib.fromunicode(dlg.textValue())   try:   fn = os.path.join('shelves', shelve) - if os.path.exists(self.repo.join(fn)): + shelfpath = self.repo.join(fn) + if os.path.exists(shelfpath):   qtlib.ErrorMsgBox(_('File already exists'),   _('A shelf file of that name already exists'))   return   self.repo.opener(fn, 'wb').write('')   self.showMessage(_('New shelf created')) + self.refreshCombos() + if shelfpath in self.shelves: + self.combob.setCurrentIndex(self.shelves.index(shelfpath))   except EnvironmentError, e:   self.showMessage(hglib.tounicode(str(e))) - self.refreshCombos()     @pyqtSlot()   def deleteShelfA(self):