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

login
register
mail settings
Submitter Katsunori FUJIWARA
Date Nov. 8, 2013, 3:54 a.m.
Message ID <678478b86dd994059e2c.1383882858@juju>
Download mbox | patch
Permalink /patch/2879/
State Superseded
Headers show

Comments

Katsunori FUJIWARA - Nov. 8, 2013, 3:54 a.m.
# HG changeset patch
# User FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
# Date 1383882352 -32400
#      Fri Nov 08 12:45:52 2013 +0900
# Node ID 678478b86dd994059e2c9446863aca80a3867fe5
# Parent  8bc0de4c70adb242bbba61775af91f779860e31b
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,