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).
--- 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,