equal
deleted
inserted
replaced
155 if opt == 'expand': |
155 if opt == 'expand': |
156 mf = util.matcher(repo.root, '', [pat], [], [])[1] |
156 mf = util.matcher(repo.root, '', [pat], [], [])[1] |
157 for candidate in candidates: |
157 for candidate in candidates: |
158 if mf(candidate) and candidate not in files: |
158 if mf(candidate) and candidate not in files: |
159 files.append(candidate) |
159 files.append(candidate) |
160 if not files: |
|
161 return False |
|
162 |
|
163 for f in files: |
160 for f in files: |
164 data = repo.wfile(f).read() |
161 data = repo.wfile(f).read() |
165 if not util.binary(data): |
162 if not util.binary(data): |
166 data, kwct = re_kw.subn(lambda m: |
163 data, kwct = re_kw.subn(lambda m: |
167 kwexpand(m, repo, f, changeid=args['node']), |
164 kwexpand(m, repo, f, changeid=args['node']), |