Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0.1, 1.0.2, and 1.0.3

stable p4pending: catch up with changes to perfarce extension

Changeset 08e12f7a79e3

Parent f9d76591eebd

by Steve Borho

Changes to one file · Browse files at 08e12f7a79e3 Showing diff from parent f9d76591eebd Diff from another changeset...

 
80
81
82
83
 
84
85
86
 
102
103
104
105
106
 
 
107
108
109
110
111
 
 
112
 
80
81
82
 
83
84
85
86
 
102
103
104
 
 
105
106
107
108
109
 
 
110
111
112
@@ -80,7 +80,7 @@
  revs = [self.repo[hash] for hash in self.pending[curcl]]   self.cslist.clear()   self.cslist.update(revs, self.repo) - sensitive = not curcl.startswith(_('Submitted')) + sensitive = not curcl.endswith('(submitted)')   self.buttons['submit'].set_property('sensitive', sensitive)   self.buttons['revert'].set_property('sensitive', sensitive)   self.curcl = curcl @@ -102,11 +102,11 @@
  self.cmd.set_result(_('Failed'), style='error')     def submit(self): - assert(not self.curcl.startswith(_('Submitted'))) - cmdline = ['hg', 'p4submit', '--verbose', self.curcl] + assert(self.curcl.endswith('(pending)')) + cmdline = ['hg', 'p4submit', '--verbose', self.curcl[:-10]]   self.execute_command(cmdline)     def revert(self): - assert(not self.curcl.startswith(_('Submitted'))) - cmdline = ['hg', 'p4revert', '--verbose', self.curcl] + assert(self.curcl.endswith('(pending)')) + cmdline = ['hg', 'p4revert', '--verbose', self.curcl[:-10]]   self.execute_command(cmdline)