hgext/bookmarks.py
changeset 13367 cef73cd9c268
parent 13366 c756e9166417
--- a/hgext/bookmarks.py	Thu Feb 10 13:46:28 2011 -0600
+++ b/hgext/bookmarks.py	Thu Feb 10 13:46:28 2011 -0600
@@ -196,9 +196,6 @@
     return result
 
 def uisetup(ui):
-    if ui.configbool('bookmarks', 'track.current'):
-        extensions.wrapcommand(commands.table, 'update', updatecurbookmark)
-
     entry = extensions.wrapcommand(commands.table, 'pull', pull)
     entry[1].append(('B', 'bookmark', [],
                      _("bookmark to import"),
@@ -208,19 +205,6 @@
                      _("bookmark to export"),
                      _('BOOKMARK')))
 
-def updatecurbookmark(orig, ui, repo, *args, **opts):
-    '''Set the current bookmark
-
-    If the user updates to a bookmark we update the .hg/bookmarks.current
-    file.
-    '''
-    res = orig(ui, repo, *args, **opts)
-    rev = opts['rev']
-    if not rev and len(args) > 0:
-        rev = args[0]
-    bookmarks.setcurrent(repo, rev)
-    return res
-
 cmdtable = {
     "bookmarks":
         (bookmark,