Show More
@@ -800,14 +800,15 b' def grep(repo, subset, x):' | |||||
800 | gr = re.compile(getstring(x, _("grep requires a string"))) |
|
800 | gr = re.compile(getstring(x, _("grep requires a string"))) | |
801 | except re.error, e: |
|
801 | except re.error, e: | |
802 | raise error.ParseError(_('invalid match pattern: %s') % e) |
|
802 | raise error.ParseError(_('invalid match pattern: %s') % e) | |
803 | l = [] |
|
803 | ||
804 | for r in subset: |
|
804 | def matches(x): | |
805 |
c = repo[ |
|
805 | c = repo[x] | |
806 | for e in c.files() + [c.user(), c.description()]: |
|
806 | for e in c.files() + [c.user(), c.description()]: | |
807 | if gr.search(e): |
|
807 | if gr.search(e): | |
808 |
|
|
808 | return True | |
809 | break |
|
809 | return False | |
810 | return baseset(l) |
|
810 | ||
|
811 | return lazyset(subset, matches) | |||
811 |
|
812 | |||
812 | def _matchfiles(repo, subset, x): |
|
813 | def _matchfiles(repo, subset, x): | |
813 | # _matchfiles takes a revset list of prefixed arguments: |
|
814 | # _matchfiles takes a revset list of prefixed arguments: |
General Comments 0
You need to be logged in to leave comments.
Login now