--- a/mercurial/revset.py Wed Oct 14 15:11:53 2015 -0400
+++ b/mercurial/revset.py Thu Oct 15 01:35:44 2015 +0100
@@ -12,6 +12,7 @@
from .i18n import _
from . import (
+ destutil,
encoding,
error,
hbisect,
@@ -463,6 +464,11 @@
# functions
+def _destupdate(repo, subset, x):
+ # experimental revset for update destination
+ args = getargsdict(x, 'limit', 'clean check')
+ return subset & baseset([destutil.destupdate(repo, **args)[0]])
+
def _mergedefaultdest(repo, subset, x):
# ``_mergedefaultdest()``
@@ -2142,6 +2148,7 @@
return baseset([r for r in ls if r in s])
symbols = {
+ "_destupdate": _destupdate,
"_mergedefaultdest": _mergedefaultdest,
"adds": adds,
"all": getall,