Patchwork [08,of,15,V4] bookmarks: remove "diff()" already replaced by "incoming()"/"outgoing()"

login
register
mail settings
Submitter Katsunori FUJIWARA
Date Oct. 15, 2013, 3:25 p.m.
Message ID <fbe4006cebaaaca5eabf.1381850730@juju>
Download mbox | patch
Permalink /patch/2779/
State Superseded
Headers show

Comments

Katsunori FUJIWARA - Oct. 15, 2013, 3:25 p.m.
# HG changeset patch
# User FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
# Date 1381849966 -32400
#      Wed Oct 16 00:12:46 2013 +0900
# Node ID fbe4006cebaaaca5eabf4769e652c88b2f7b694b
# Parent  64738e34e68eb49277da5c38254e162423e6a7b0
bookmarks: remove "diff()" already replaced by "incoming()"/"outgoing()"

Patch

diff --git a/mercurial/bookmarks.py b/mercurial/bookmarks.py
--- a/mercurial/bookmarks.py
+++ b/mercurial/bookmarks.py
@@ -455,22 +455,6 @@ 
 
     return 0
 
-def diff(ui, dst, src):
-    ui.status(_("searching for changed bookmarks\n"))
-
-    smarks = src.listkeys('bookmarks')
-    dmarks = dst.listkeys('bookmarks')
-
-    diff = sorted(set(smarks) - set(dmarks))
-    for k in diff:
-        mark = ui.debugflag and smarks[k] or smarks[k][:12]
-        ui.write("   %-25s %s\n" % (k, mark))
-
-    if len(diff) <= 0:
-        ui.status(_("no changed bookmarks found\n"))
-        return 1
-    return 0
-
 def summary(repo, other):
     (addsrc, adddst, advsrc, advdst, diverge, differ, invalid
      ) = compare(repo, other.listkeys('bookmarks'), repo._bookmarks,