comparison hgext/mq.py @ 4578:eb3b7dd1e158

mq: reduce matcher abuse The match function should match only the files we're interested in.
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Wed, 13 Jun 2007 21:39:45 -0300
parents eb403f295ff1
children 3a645af7fb76
comparison
equal deleted inserted replaced
4577:b36d8cd1d8ff 4578:eb3b7dd1e158
1055 changes = repo.changelog.read(tip) 1055 changes = repo.changelog.read(tip)
1056 man = repo.manifest.read(changes[0]) 1056 man = repo.manifest.read(changes[0])
1057 aaa = aa[:] 1057 aaa = aa[:]
1058 if opts.get('short'): 1058 if opts.get('short'):
1059 filelist = mm + aa + dd 1059 filelist = mm + aa + dd
1060 match = dict.fromkeys(filelist).__contains__
1060 else: 1061 else:
1061 filelist = None 1062 filelist = None
1062 m, a, r, d, u = repo.status(files=filelist)[:5] 1063 match = util.always
1064 m, a, r, d, u = repo.status(files=filelist, match=match)[:5]
1063 1065
1064 # we might end up with files that were added between tip and 1066 # we might end up with files that were added between tip and
1065 # the dirstate parent, but then changed in the local dirstate. 1067 # the dirstate parent, but then changed in the local dirstate.
1066 # in this case, we want them to only show up in the added section 1068 # in this case, we want them to only show up in the added section
1067 for x in m: 1069 for x in m: