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

stable reporegistry: make sure that repository renames are applied immediately

Without this patch the rename was not applied until the repo was open.

Note that I also added a few missing empty lines separating some of the
class methods, which made the file hard to read.

Changeset 666e5533116b

Parent 40846ddb2223

by Angel Ezquerra

Changes to one file · Browse files at 666e5533116b Showing diff from parent 40846ddb2223 Diff from another changeset...

 
309
310
311
 
312
313
314
 
407
408
409
 
410
411
412
 
413
414
415
 
483
484
485
 
486
487
488
 
489
490
491
 
309
310
311
312
313
314
315
 
408
409
410
411
412
413
414
415
416
417
418
 
486
487
488
489
490
491
492
493
494
495
496
@@ -309,6 +309,7 @@
  _('An error occurred while updating the repository hgrc '   'file (%s)' % abshgrcpath))   return False + self.setShortName(shortname)   return True   return False   @@ -407,9 +408,11 @@
  self.name = value.toString()   return True   return False +   def menulist(self):   return ['openAll', 'add', None, 'newGroup', None, 'rename', 'remove',   None, 'reloadRegistry'] +   def flags(self):   return (Qt.ItemIsEnabled | Qt.ItemIsSelectable | Qt.ItemIsDropEnabled   | Qt.ItemIsDragEnabled | Qt.ItemIsEditable) @@ -483,9 +486,11 @@
 class AllRepoGroupItem(RepoGroupItem):   def __init__(self, parent=None):   RepoGroupItem.__init__(self, name=_('default'), parent=parent) +   def menulist(self):   return ['openAll', 'add', None, 'newGroup', None, 'rename',   None, 'reloadRegistry'] +   def undump(self, xr):   a = xr.attributes()   name = a.value('', 'name').toString()