Show More
@@ -12,6 +12,7 b' import re' | |||
|
12 | 12 | |
|
13 | 13 | from .i18n import _ |
|
14 | 14 | from . import ( |
|
15 | destutil, | |
|
15 | 16 | encoding, |
|
16 | 17 | error, |
|
17 | 18 | hbisect, |
@@ -463,6 +464,11 b' def func(repo, subset, a, b):' | |||
|
463 | 464 | |
|
464 | 465 | # functions |
|
465 | 466 | |
|
467 | def _destupdate(repo, subset, x): | |
|
468 | # experimental revset for update destination | |
|
469 | args = getargsdict(x, 'limit', 'clean check') | |
|
470 | return subset & baseset([destutil.destupdate(repo, **args)[0]]) | |
|
471 | ||
|
466 | 472 | def _mergedefaultdest(repo, subset, x): |
|
467 | 473 | # ``_mergedefaultdest()`` |
|
468 | 474 | |
@@ -2142,6 +2148,7 b' def _hexlist(repo, subset, x):' | |||
|
2142 | 2148 | return baseset([r for r in ls if r in s]) |
|
2143 | 2149 | |
|
2144 | 2150 | symbols = { |
|
2151 | "_destupdate": _destupdate, | |
|
2145 | 2152 | "_mergedefaultdest": _mergedefaultdest, |
|
2146 | 2153 | "adds": adds, |
|
2147 | 2154 | "all": getall, |
@@ -260,3 +260,8 b' non-obsolete parent but that will be dec' | |||
|
260 | 260 | $ hg debugobsolete bd10386d478cd5a9faf2e604114c8e6da62d3889 |
|
261 | 261 | $ hg up |
|
262 | 262 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
263 | ||
|
264 | Test experimental revset support | |
|
265 | ||
|
266 | $ hg log -r '_destupdate()' | |
|
267 | 2:bd10386d478c 2 (no-eol) |
General Comments 0
You need to be logged in to leave comments.
Login now