Show More
@@ -863,7 +863,13 b' def contentdivergent(repo, subset, x):' | |||||
863 |
|
863 | |||
864 | @predicate('expectsize(set[, size])', safe=True, takeorder=True) |
|
864 | @predicate('expectsize(set[, size])', safe=True, takeorder=True) | |
865 | def expectsize(repo, subset, x, order): |
|
865 | def expectsize(repo, subset, x, order): | |
866 | """Abort if the revset doesn't expect given size""" |
|
866 | """Return the given revset if size matches the revset size. | |
|
867 | Abort if the revset doesn't expect given size. | |||
|
868 | size can either be an integer range or an integer. | |||
|
869 | ||||
|
870 | For example, ``expectsize(0:1, 3:5)`` will abort as revset size is 2 and | |||
|
871 | 2 is not between 3 and 5 inclusive.""" | |||
|
872 | ||||
867 | args = getargsdict(x, 'expectsize', 'set size') |
|
873 | args = getargsdict(x, 'expectsize', 'set size') | |
868 | minsize = 0 |
|
874 | minsize = 0 | |
869 | maxsize = len(repo) + 1 |
|
875 | maxsize = len(repo) + 1 |
General Comments 0
You need to be logged in to leave comments.
Login now