Show More
@@ -1072,19 +1072,19 b' def grep(ui, repo, pattern, *pats, **opt' | |||
|
1072 | 1072 | if st == 'window': |
|
1073 | 1073 | matches.clear() |
|
1074 | 1074 | elif st == 'add': |
|
1075 |
|
|
|
1075 | ctx = repo.changectx(rev) | |
|
1076 | 1076 | matches[rev] = {} |
|
1077 | 1077 | for fn in fns: |
|
1078 | 1078 | if fn in skip: |
|
1079 | 1079 | continue |
|
1080 | 1080 | try: |
|
1081 |
grepbody(fn, rev, getfile(fn).read( |
|
|
1081 | grepbody(fn, rev, getfile(fn).read(ctx.filenode(fn))) | |
|
1082 | 1082 | fstate.setdefault(fn, []) |
|
1083 | 1083 | if follow: |
|
1084 |
copied = getfile(fn).renamed( |
|
|
1084 | copied = getfile(fn).renamed(ctx.filenode(fn)) | |
|
1085 | 1085 | if copied: |
|
1086 | 1086 | copies.setdefault(rev, {})[fn] = copied[0] |
|
1087 |
except |
|
|
1087 | except revlog.LookupError: | |
|
1088 | 1088 | pass |
|
1089 | 1089 | elif st == 'iter': |
|
1090 | 1090 | states = matches[rev].items() |
General Comments 0
You need to be logged in to leave comments.
Login now