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

login
register
mail settings
Submitter Katsunori FUJIWARA
Date Sept. 22, 2013, 2:05 p.m.
Message ID <53d0b139719b99d85758.1379858734@feefifofum>
Download mbox | patch
Permalink /patch/2605/
State Superseded
Headers show

Comments

Katsunori FUJIWARA - Sept. 22, 2013, 2:05 p.m.
# HG changeset patch
# User FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
# Date 1379858556 -32400
#      Sun Sep 22 23:02:36 2013 +0900
# Node ID 53d0b139719b99d8575816a79d60a6f32eb2a2cc
# Parent  6c368f4e6e03673e9ee8a482c8a809b3fe8c1c5b
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
@@ -459,22 +459,6 @@ 
         return 1
     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):
     results = compare(repo, other.listkeys('bookmarks'), repo._bookmarks,
                       dsthex=hex)