571 |
572 |
572 def revs(self, expr, *args): |
573 def revs(self, expr, *args): |
573 '''Find revisions matching a revset. |
574 '''Find revisions matching a revset. |
574 |
575 |
575 The revset is specified as a string ``expr`` that may contain |
576 The revset is specified as a string ``expr`` that may contain |
576 %-formatting to escape certain types. See ``revset.formatspec``. |
577 %-formatting to escape certain types. See ``revsetlang.formatspec``. |
577 |
578 |
578 Revset aliases from the configuration are not expanded. To expand |
579 Revset aliases from the configuration are not expanded. To expand |
579 user aliases, consider calling ``scmutil.revrange()``. |
580 user aliases, consider calling ``scmutil.revrange()``. |
580 |
581 |
581 Returns a revset.abstractsmartset, which is a list-like interface |
582 Returns a revset.abstractsmartset, which is a list-like interface |
582 that contains integer revisions. |
583 that contains integer revisions. |
583 ''' |
584 ''' |
584 expr = revset.formatspec(expr, *args) |
585 expr = revsetlang.formatspec(expr, *args) |
585 m = revset.match(None, expr) |
586 m = revset.match(None, expr) |
586 return m(self) |
587 return m(self) |
587 |
588 |
588 def set(self, expr, *args): |
589 def set(self, expr, *args): |
589 '''Find revisions matching a revset and emit changectx instances. |
590 '''Find revisions matching a revset and emit changectx instances. |