comparison mercurial/cmdutil.py @ 6581:1ae7cb678d24

cmdutil: switch commit to match
author Matt Mackall <mpm@selenic.com>
date Mon, 12 May 2008 11:37:07 -0500
parents da2a20d2ba3d
children 5acbdd3941c4
comparison
equal deleted inserted replaced
6580:da2a20d2ba3d 6581:1ae7cb678d24
1147 # extract addremove carefully -- this function can be called from a command 1147 # extract addremove carefully -- this function can be called from a command
1148 # that doesn't support addremove 1148 # that doesn't support addremove
1149 if opts.get('addremove'): 1149 if opts.get('addremove'):
1150 addremove(repo, pats, opts) 1150 addremove(repo, pats, opts)
1151 1151
1152 fns, match, anypats = matchpats(repo, pats, opts) 1152 m = match(repo, pats, opts)
1153 if pats: 1153 if pats:
1154 status = repo.status(files=fns, match=match) 1154 status = repo.status(files=m.files(), match=m)
1155 modified, added, removed, deleted, unknown = status[:5] 1155 modified, added, removed, deleted, unknown = status[:5]
1156 files = modified + added + removed 1156 files = modified + added + removed
1157 slist = None 1157 slist = None
1158 for f in fns: 1158 for f in m.files():
1159 if f == '.': 1159 if f == '.':
1160 continue 1160 continue
1161 if f not in files: 1161 if f not in files:
1162 rf = repo.wjoin(f) 1162 rf = repo.wjoin(f)
1163 rel = repo.pathto(f) 1163 rel = repo.pathto(f)