##// END OF EJS Templates
revset: import `unstable()` from the evolve extension...
Matt Harbison -
r45182:48b99af7 default
parent child Browse files
Show More
@@ -2507,6 +2507,21 b' def orphan(repo, subset, x):'
2507 return subset & orphan
2507 return subset & orphan
2508
2508
2509
2509
2510 @predicate(b'unstable()', safe=True)
2511 def unstable(repo, subset, x):
2512 """Changesets with instabilities. (EXPERIMENTAL)
2513 """
2514 # i18n: "unstable" is a keyword
2515 getargs(x, 0, 0, b'unstable takes no arguments')
2516 _unstable = set()
2517 _unstable.update(obsmod.getrevs(repo, b'orphan'))
2518 _unstable.update(obsmod.getrevs(repo, b'phasedivergent'))
2519 _unstable.update(obsmod.getrevs(repo, b'contentdivergent'))
2520 _unstable = baseset(_unstable)
2521 _unstable.sort() # set is non-ordered, enforce order
2522 return subset & _unstable
2523
2524
2510 @predicate(b'user(string)', safe=True, weight=10)
2525 @predicate(b'user(string)', safe=True, weight=10)
2511 def user(repo, subset, x):
2526 def user(repo, subset, x):
2512 """User name contains string. The match is case-insensitive.
2527 """User name contains string. The match is case-insensitive.
@@ -91,6 +91,9 b' A_1 have two direct and divergent succes'
91 $ hg log -r 'contentdivergent()'
91 $ hg log -r 'contentdivergent()'
92 2:82623d38b9ba A_1
92 2:82623d38b9ba A_1
93 3:392fd25390da A_2
93 3:392fd25390da A_2
94 $ hg log -r 'unstable()'
95 2:82623d38b9ba A_1
96 3:392fd25390da A_2
94 $ hg debugsuccessorssets 'all()' --closest
97 $ hg debugsuccessorssets 'all()' --closest
95 d20a80d4def3
98 d20a80d4def3
96 d20a80d4def3
99 d20a80d4def3
@@ -224,6 +224,9 b' Check that public changeset are not acco'
224 |
224 |
225 o 0:1f0dee641bb7 (public) [ ] add a
225 o 0:1f0dee641bb7 (public) [ ] add a
226
226
227 $ hg log -r 'unstable()'
228 5:5601fb93a350 (draft phase-divergent) [tip ] add new_3_c
229
227
230
228 And that bumped changeset are detected
231 And that bumped changeset are detected
229 --------------------------------------
232 --------------------------------------
@@ -582,6 +585,8 b' detect outgoing obsolete and unstable'
582 1 new obsolescence markers
585 1 new obsolescence markers
583 obsoleted 1 changesets
586 obsoleted 1 changesets
584 1 new orphan changesets
587 1 new orphan changesets
588 $ hg log -r 'unstable()'
589 5:cda648ca50f5 (draft orphan) [tip ] add original_e
585 $ hg debugobsolete | grep `getid original_d`
590 $ hg debugobsolete | grep `getid original_d`
586 94b33453f93bdb8d457ef9b770851a618bf413e1 0 {6f96419950729f3671185b847352890f074f7557} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
591 94b33453f93bdb8d457ef9b770851a618bf413e1 0 {6f96419950729f3671185b847352890f074f7557} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
587 $ hg log -r 'obsolete()'
592 $ hg log -r 'obsolete()'
General Comments 0
You need to be logged in to leave comments. Login now