Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 31320:f59b6cf663a9
vfs: use repo.vfs.unlinkpath
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Sat, 11 Mar 2017 11:02:25 -0800 |
parents | 50d76bae15cf |
children | a3a2382b2e1b |
comparison
equal
deleted
inserted
replaced
31319:431d4f73249e | 31320:f59b6cf663a9 |
---|---|
2381 _('note: graft of %d:%s created no changes to commit\n') % | 2381 _('note: graft of %d:%s created no changes to commit\n') % |
2382 (ctx.rev(), ctx)) | 2382 (ctx.rev(), ctx)) |
2383 | 2383 |
2384 # remove state when we complete successfully | 2384 # remove state when we complete successfully |
2385 if not opts.get('dry_run'): | 2385 if not opts.get('dry_run'): |
2386 util.unlinkpath(repo.join('graftstate'), ignoremissing=True) | 2386 repo.vfs.unlinkpath('graftstate', ignoremissing=True) |
2387 | 2387 |
2388 return 0 | 2388 return 0 |
2389 | 2389 |
2390 @command('grep', | 2390 @command('grep', |
2391 [('0', 'print0', None, _('end fields with NUL')), | 2391 [('0', 'print0', None, _('end fields with NUL')), |