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

stable tagadd: return initial rev selection if 'replace' is checked

Closes #1093

Changeset 16540a30efc2

Parent b331d227419d

by Steve Borho

Changes to one file · Browse files at 16540a30efc2 Showing diff from parent b331d227419d Diff from another changeset...

 
120
121
122
123
 
 
124
125
126
 
155
156
157
 
158
159
160
 
120
121
122
 
123
124
125
126
127
 
156
157
158
159
160
161
162
@@ -120,7 +120,8 @@
  """ update revision entry based on tag """   tagmap = self.repo.tags()   tag = self.tagentry.get_text() - if not tag or hglib.fromutf(tag) not in tagmap: + replace = self.replacechk.get_active() + if not tag or hglib.fromutf(tag) not in tagmap or replace:   if self.initial_rev:   self.reventry.set_text(self.initial_rev)   return @@ -155,6 +156,7 @@
  is_local = self.repo.tagtype(hglib.fromutf(tag))   if affectlocal and is_local is not None:   self.localchk.set_active(is_local == 'local') + self.update_revision()     def load_settings(self):   expanded = self.settings.get_value('expanded', False, True)