Backed out changeset 4c3e0ad58c5b
authorDavid Soria Parra <dsp@php.net>
Sun, 07 Dec 2008 19:31:38 +0100
changeset 7488 e80a734ba1fc
parent 7478 4c3e0ad58c5b
child 7489 9b64589b1112
Backed out changeset 4c3e0ad58c5b In discussion with mpm and tonfa we decided that we need a more generic solution and not a bookmark specific.
hgext/bookmarks.py
--- a/hgext/bookmarks.py	Fri Dec 05 09:38:17 2008 +0100
+++ b/hgext/bookmarks.py	Sun Dec 07 19:31:38 2008 +0100
@@ -17,7 +17,6 @@
 '''
 
 from mercurial.commands import templateopts, hex, short
-from mercurial import extensions
 from mercurial.i18n import _
 from mercurial import cmdutil, util, commands, changelog
 from mercurial.node import nullid, nullrev
@@ -221,24 +220,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 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")))
-
 cmdtable = {
     "bookmarks":
         (bookmark,