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

stable shelve: fix shelf creation when .hg/shelves must be created

Changeset 32f65825cd27

Parent d298825a4b2c

by Steve Borho

Changes to 2 files · Browse files at 32f65825cd27 Showing diff from parent d298825a4b2c Diff from another changeset...

 
265
266
267
268
269
 
270
271
272
 
265
266
267
 
 
268
269
270
271
@@ -265,8 +265,7 @@
  qtlib.ErrorMsgBox(_('File already exists'),   _('A shelf file of that name already exists'))   return - f = open(shelfpath, "wb") - f.close() + self.repo.makeshelf(shelve)   self.showMessage(_('New shelf created'))   self.refreshCombos()   if shelfpath in self.shelves:
 
476
477
478
 
 
 
 
 
 
479
480
481
 
476
477
478
479
480
481
482
483
484
485
486
487
@@ -476,6 +476,12 @@
  os.path.isfile(os.path.join(self.shelfdir, s))]   return []   + def makeshelf(self, patch): + if not os.path.exists(self.shelfdir): + os.mkdir(self.shelfdir) + f = open(os.path.join(self.shelfdir, patch), "wb") + f.close() +   def thginvalidate(self):   'Should be called when mtime of repo store/dirstate are changed'   self.dirstate.invalidate()