revset: delete _updatedefaultdest as it has no users
authorPierre-Yves David <pierre-yves.david@fb.com>
Mon, 05 Oct 2015 02:33:45 -0700
changeset 26571 a024e2db4553
parent 26570 c8b332b1eb1f
child 26572 c7850af6bb75
revset: delete _updatedefaultdest as it has no users The revset is not used anywhere anymore. We delete the function until we use (and therefore test it again).
mercurial/revset.py
--- a/mercurial/revset.py	Mon Sep 28 22:11:23 2015 -0700
+++ b/mercurial/revset.py	Mon Oct 05 02:33:45 2015 -0700
@@ -12,7 +12,6 @@
 
 from .i18n import _
 from . import (
-    destutil,
     encoding,
     error,
     hbisect,
@@ -525,17 +524,6 @@
             node = nbhs[0]
     return subset & baseset([repo[node].rev()])
 
-def _updatedefaultdest(repo, subset, x):
-    # ``_updatedefaultdest()``
-
-    # default destination for update.
-    # # XXX: Currently private because I expect the signature to change.
-    # # XXX: - taking rev as arguments,
-    # # XXX: - bailing out in case of ambiguity vs returning all data.
-    getargs(x, 0, 0, _("_updatedefaultdest takes no arguments"))
-    rev = destutil.destupdate(repo)
-    return subset & baseset([rev])
-
 def adds(repo, subset, x):
     """``adds(pattern)``
     Changesets that add a file matching pattern.
@@ -2146,7 +2134,6 @@
 
 symbols = {
     "_mergedefaultdest": _mergedefaultdest,
-    "_updatedefaultdest": _updatedefaultdest,
     "adds": adds,
     "all": getall,
     "ancestor": ancestor,