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

bookmarkadd: cleanup code

Addresses #498

Changeset 4989f65d1c61

Parent 9efc93ad16e1

by Emmanuel Rosa

Changes to one file · Browse files at 4989f65d1c61 Showing diff from parent 9efc93ad16e1 Diff from another changeset...

 
77
78
79
80
81
82
 
 
83
84
85
 
143
144
145
146
147
148
149
150
 
77
78
79
 
 
 
80
81
82
83
84
 
142
143
144
 
 
145
146
147
@@ -77,9 +77,8 @@
  bookmarks = hglib.get_repo_bookmarks(self.repo)   bookmarks.sort()   for bookmarkname in bookmarks: - if bookmarkname == "tip": - continue - self._bookmarkslist.append([bookmarkname]) + if bookmarkname != "tip": + self._bookmarkslist.append([bookmarkname])     def dialog_response(self, dialog, response_id):   if response_id == gtk.RESPONSE_CLOSE \ @@ -143,8 +142,6 @@
  if name in hglib.get_repo_bookmarks(self.repo):   raise util.Abort(_('a bookmark named "%s" already exists') % name)   - ctx = self.repo[revision] - r = ctx.node()   bookmarks.bookmark(ui=ui.ui(),   repo=self.repo,   rev=revision,