Patchwork [3,of,4,V6-2] bookmarks: remove useless diff()

login
register
mail settings
Submitter Katsunori FUJIWARA
Date March 19, 2015, 2:41 p.m.
Message ID <c714fc4a9c335fc03752.1426776071@juju>
Download mbox | patch
Permalink /patch/8161/
State Accepted
Commit 3993eb47ea49c2395cb3fb7db2de71e7b348d820
Headers show

Comments

Katsunori FUJIWARA - March 19, 2015, 2:41 p.m.
# HG changeset patch
# User FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
# Date 1426775765 -32400
#      Thu Mar 19 23:36:05 2015 +0900
# Node ID c714fc4a9c335fc03752771fa2a8586ebbcd9f58
# Parent  c193872b3f0e3a38c15195039fd6675e55643c3b
bookmarks: remove useless diff()

Previous patches removed code paths referring it.

Patch

diff --git a/mercurial/bookmarks.py b/mercurial/bookmarks.py
--- a/mercurial/bookmarks.py
+++ b/mercurial/bookmarks.py
@@ -498,25 +498,6 @@  def outgoing(ui, repo, other):
 
     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:
-        if ui.debugflag:
-            mark = smarks[k]
-        else:
-            mark = 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 validdest(repo, old, new):
     """Is the new bookmark destination a valid update from the old one"""
     repo = repo.unfiltered()