hgkw/keyword.py
branchsolo-extension
changeset 63 5455c45db625
parent 61 1fe48bf82d05
child 64 4cd7b993c5f8
equal deleted inserted replaced
62:736ff2dde308 63:5455c45db625
   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']),