232 wctx = repo[None] |
232 wctx = repo[None] |
233 |
233 |
234 def walkpat(pat): |
234 def walkpat(pat): |
235 srcs = [] |
235 srcs = [] |
236 badstates = after and '?' or '?r' |
236 badstates = after and '?' or '?r' |
237 m = scmutil.match(repo, [pat], opts, globbed=True) |
237 m = scmutil.match(repo[None], [pat], opts, globbed=True) |
238 for abs in repo.walk(m): |
238 for abs in repo.walk(m): |
239 state = repo.dirstate[abs] |
239 state = repo.dirstate[abs] |
240 rel = m.rel(abs) |
240 rel = m.rel(abs) |
241 exact = m.exact(abs) |
241 exact = m.exact(abs) |
242 if state in badstates: |
242 if state in badstates: |
1183 # extract addremove carefully -- this function can be called from a command |
1183 # extract addremove carefully -- this function can be called from a command |
1184 # that doesn't support addremove |
1184 # that doesn't support addremove |
1185 if opts.get('addremove'): |
1185 if opts.get('addremove'): |
1186 scmutil.addremove(repo, pats, opts) |
1186 scmutil.addremove(repo, pats, opts) |
1187 |
1187 |
1188 return commitfunc(ui, repo, message, scmutil.match(repo, pats, opts), opts) |
1188 return commitfunc(ui, repo, message, |
|
1189 scmutil.match(repo[None], pats, opts), opts) |
1189 |
1190 |
1190 def commiteditor(repo, ctx, subs): |
1191 def commiteditor(repo, ctx, subs): |
1191 if ctx.description(): |
1192 if ctx.description(): |
1192 return ctx.description() |
1193 return ctx.description() |
1193 return commitforceeditor(repo, ctx, subs) |
1194 return commitforceeditor(repo, ctx, subs) |