Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.1, 1.1.1, and 1.1.2

thgpbranch: Add edit message

Changeset 7081aeb0452f

Parent 2df4fd60320e

by Peer Sommerlund

Changes to one file · Browse files at 7081aeb0452f Showing diff from parent 2df4fd60320e Diff from another changeset...

 
380
381
382
 
 
 
 
 
 
 
 
 
 
 
383
384
385
 
511
512
513
 
514
515
516
 
699
700
701
 
 
 
702
703
704
 
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
 
522
523
524
525
526
527
528
 
711
712
713
714
715
716
717
718
719
@@ -380,6 +380,17 @@
  opts = {}   mgr = self.pbranch.patchmanager(self.repo.ui, self.repo, opts)   return mgr.patchdesc(patch_name) + + def peditmessage(self, patch_name): + """ + Edit patch message + + :param patch_name: Name of patch-branch + """ + if not patch_name in self.patch_list(): + return + cmdline = ['hg', 'peditmessage', patch_name] + self.cmd.execute(cmdline, self.cmd_done)     def pnew_ui(self):   """ @@ -511,6 +522,7 @@
  if not is_current:   append(_('_goto (update workdir)'), self.goto_activated)   if is_patch: + append(_('_edit message'), self.edit_message_activated)   append(_('_rename'), self.rename_activated)   append(_('_delete'), self.delete_activated)   @@ -699,6 +711,9 @@
  # if aborted, update back to prev branch   pass   + def edit_message_activated(self, menuitem, row): + self.peditmessage(row[M_NAME]) +   def goto_activated(self, menuitem, row):   self.update_by_row(row)