Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0.3, 2.0.4, and 2.0.5

hgtk bookmarks: clean trailing white-space

Changeset cea78e7c7931

Parent 39283e23a47e

by Steve Borho

Changes to one file · Browse files at cea78e7c7931 Showing diff from parent 39283e23a47e Diff from another changeset...

 
51
52
53
54
 
55
56
57
 
85
86
87
88
 
89
90
91
92
93
94
95
96
 
 
97
98
99
 
102
103
104
105
 
106
107
108
 
109
110
111
 
120
121
122
123
 
124
125
126
 
196
197
198
199
 
200
201
202
 
358
359
360
361
 
362
363
364
 
376
377
378
379
 
380
381
382
383
 
 
51
52
53
 
54
55
56
57
 
85
86
87
 
88
89
90
91
92
93
94
 
 
95
96
97
98
99
 
102
103
104
 
105
106
107
 
108
109
110
111
 
120
121
122
 
123
124
125
126
 
196
197
198
 
199
200
201
202
 
358
359
360
 
361
362
363
364
 
376
377
378
 
379
380
381
382
 
383
@@ -51,7 +51,7 @@
  elif type == TYPE_RENAME:   self.add_button(_('Rename'), RESPONSE_RENAME)   elif type == TYPE_CURRENT: - self.add_button(_('Set Current'), RESPONSE_CURRENT) + self.add_button(_('Set Current'), RESPONSE_CURRENT)   else:   raise _('unexpected type: %s') % type   self.add_button(gtk.STOCK_CLOSE, gtk.RESPONSE_CLOSE) @@ -85,15 +85,15 @@
  self._name_input = entry   label = _('New Name:')   table.add_row(label, entry, padding=False) - +   # Option to make new bookmark the active one   trackcurrent = self.repo.ui.configbool('bookmarks', 'track.current')   if type == TYPE_ADDREMOVE and trackcurrent:   check = gtk.CheckButton(_('Make new/moved bookmark current'))   self.opt_newcurrent = check   check.set_sensitive(hglib.is_rev_current(self.repo, rev)) - table.add_row(None, check) - + table.add_row(None, check) +   # signal handlers   self.connect('response', self.dialog_response)   self._bookmark_input.connect('activate', self.entry_activated, type) @@ -102,10 +102,10 @@
  if type == TYPE_ADDREMOVE:   self._bookmark_input.connect('changed', self.bookmark_changed)   if trackcurrent: - self._rev_input.connect('changed', self.rev_changed) + self._rev_input.connect('changed', self.rev_changed)     # prepare to show - self.load_settings() + self.load_settings()   if type == TYPE_ADDREMOVE:   self.set_add_move_button_sensitivity()   self._refresh(clear=False) @@ -120,7 +120,7 @@
  self._bookmarkslist.clear()     # add bookmarks to drop-down list - bookmarks = hglib.get_repo_bookmarks(self.repo) + bookmarks = hglib.get_repo_bookmarks(self.repo)   bookmarks.sort()   for bookmarkname in bookmarks:   if bookmarkname != 'tip': @@ -196,7 +196,7 @@
  else:   self._button_add.set_sensitive(True)   self._button_move.set_sensitive(False) - +     def _do_add_bookmark(self):   # gather input data @@ -358,7 +358,7 @@
  rev=revision,   mark=name,   force=True) - +   def _remove_hg_bookmark(self, name):   if not name in hglib.get_repo_bookmarks(self.repo):   raise util.Abort(_("Bookmark '%s' does not exist") % name) @@ -376,8 +376,8 @@
  repo=self.repo,   mark=new_name,   rename=name) - +   def _current_hg_bookmark(self, name):   if name not in hglib.get_repo_bookmarks(self.repo):   raise util.Abort(_('No bookmark named "%s" exists') % name) - bookmarks.setcurrent(self.repo, name) + bookmarks.setcurrent(self.repo, name)