Show More
@@ -422,6 +422,17 b' def branch(repo, subset, x):' | |||
|
422 | 422 | s = set(s) |
|
423 | 423 | return [r for r in subset if r in s or repo[r].branch() in b] |
|
424 | 424 | |
|
425 | def bumped(repo, subset, x): | |
|
426 | """``bumped()`` | |
|
427 | Mutable changesets marked as successors of public changesets. | |
|
428 | ||
|
429 | Only non-public and non-obsolete changesets can be `bumped`. | |
|
430 | """ | |
|
431 | # i18n: "bumped" is a keyword | |
|
432 | getargs(x, 0, 0, _("bumped takes no arguments")) | |
|
433 | bumped = obsmod.getrevs(repo, 'bumped') | |
|
434 | return [r for r in subset if r in bumped] | |
|
435 | ||
|
425 | 436 | def checkstatus(repo, subset, pat, field): |
|
426 | 437 | m = None |
|
427 | 438 | s = [] |
@@ -1492,6 +1503,7 b' symbols = {' | |||
|
1492 | 1503 | "bookmark": bookmark, |
|
1493 | 1504 | "branch": branch, |
|
1494 | 1505 | "branchpoint": branchpoint, |
|
1506 | "bumped": bumped, | |
|
1495 | 1507 | "children": children, |
|
1496 | 1508 | "closed": closed, |
|
1497 | 1509 | "contains": contains, |
@@ -155,6 +155,22 b' Check that public changeset are not acco' | |||
|
155 | 155 | summary: add a |
|
156 | 156 | |
|
157 | 157 | |
|
158 | And that bumped changeset are detected | |
|
159 | -------------------------------------- | |
|
160 | ||
|
161 | If we didn't filtered obsolete changesets out, 3 and 4 would show up too. Also | |
|
162 | note that the bumped changeset (5:5601fb93a350) is not a direct successor of | |
|
163 | the public changeset | |
|
164 | ||
|
165 | $ hg log --hidden -r 'bumped()' | |
|
166 | changeset: 5:5601fb93a350 | |
|
167 | tag: tip | |
|
168 | parent: 1:7c3bad9141dc | |
|
169 | user: test | |
|
170 | date: Thu Jan 01 00:00:00 1970 +0000 | |
|
171 | summary: add new_3_c | |
|
172 | ||
|
173 | ||
|
158 | 174 | $ cd .. |
|
159 | 175 | |
|
160 | 176 | Exchange Test |
General Comments 0
You need to be logged in to leave comments.
Login now