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 of .hg/pgraph

Changeset 1a3b24f78901

Parent 5b5f89c6cf61

by Peer Sommerlund

Changes to one file · Browse files at 1a3b24f78901 Showing diff from parent 5b5f89c6cf61 Diff from another changeset...

 
5
6
7
 
8
9
10
 
113
114
115
 
 
 
 
 
116
117
118
 
722
723
724
 
 
 
 
 
 
 
 
 
 
 
725
726
727
 
5
6
7
8
9
10
11
 
114
115
116
117
118
119
120
121
122
123
124
 
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
@@ -5,6 +5,7 @@
 # This software may be used and distributed according to the terms of the  # GNU General Public License version 2, incorporated herein by reference.   +import os  import gtk  import gobject   @@ -113,6 +114,11 @@
  pnewbtn.connect('clicked', self.pnew_clicked)   self.btn['pnew'] = pnewbtn   + pgraphbtn = tbar.append_stock(gtk.STOCK_EDIT, + _('Edit patch dependency graph')) + pgraphbtn.connect('clicked', self.edit_pgraph_clicked) + self.btn['pnew'] = pnewbtn +   ## separator   tbar.append_space()   @@ -722,6 +728,17 @@
  def reapply_clicked(self, toolbutton):   pass   + def edit_pgraph_clicked(self, toolbutton): + opts = {} # TODO: How to find user ID + mgr = self.pbranch.patchmanager(self.repo.ui, self.repo, opts) + oldtext = mgr.graphdesc() + # run editor in the repository root + olddir = os.getcwd() + os.chdir(self.repo.root) + newtext = self.repo.ui.edit(oldtext, opts.get('user')) + os.chdir(olddir) + mgr.updategraphdesc(newtext) +   ### context menu signal handlers ###     def pnew_activated(self, menuitem, row):