changeset 7489:9b64589b1112

Merge backout
author David Soria Parra <dsp@php.net>
date Sun, 07 Dec 2008 19:33:26 +0100
parents 63446383dfb7 (current diff) e80a734ba1fc (diff)
children 1c1e6fa67377 fead6cf99a09
files hgext/bookmarks.py
diffstat 1 files changed, 0 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/bookmarks.py	Sun Dec 07 19:28:09 2008 +0100
+++ b/hgext/bookmarks.py	Sun Dec 07 19:33:26 2008 +0100
@@ -292,19 +292,6 @@
 
     repo.__class__ = bookmark_repo
 
-def pushnonbookmarked(orig, ui, repo, *args, **opts):
-    'Call push with only the heads that are not bookmarked'
-    if opts.get('non_bookmarked'):
-        if opts.get('rev'):
-            heads = [repo.lookup(r) for r in opts.get('rev')]
-        else:
-            heads = repo.heads()
-
-        markheads = parse(repo).values()
-        opts['rev'] = [head for head in heads if not(head in markheads)]
-
-    orig(ui, repo, *args, **opts)
-
 def updatecurbookmark(orig, ui, repo, *args, **opts):
     '''Set the current bookmark
 
@@ -320,8 +307,6 @@
 
 def uisetup(ui):
     'Replace push with a decorator to provide --non-bookmarked option'
-    entry = extensions.wrapcommand(commands.table, 'push', pushnonbookmarked)
-    entry[1].append(('', 'non-bookmarked', None, _("push all heads that are not bookmarked")))
     if ui.configbool('bookmarks', 'track.current'):
         extensions.wrapcommand(commands.table, 'update', updatecurbookmark)