Show More
@@ -357,14 +357,11 b' def _kwfwrite(ui, repo, expand, *pats, *' | |||
|
357 | 357 | if len(wctx.parents()) > 1: |
|
358 | 358 | raise error.Abort(_('outstanding uncommitted merge')) |
|
359 | 359 | kwt = kwtools['templater'] |
|
360 |
w |
|
|
361 | try: | |
|
360 | with repo.wlock(): | |
|
362 | 361 | status = _status(ui, repo, wctx, kwt, *pats, **opts) |
|
363 | 362 | if status.modified or status.added or status.removed or status.deleted: |
|
364 | 363 | raise error.Abort(_('outstanding uncommitted changes')) |
|
365 | 364 | kwt.overwrite(wctx, status.clean, True, expand) |
|
366 | finally: | |
|
367 | wlock.release() | |
|
368 | 365 | |
|
369 | 366 | @command('kwdemo', |
|
370 | 367 | [('d', 'default', None, _('show default keyword template maps')), |
General Comments 0
You need to be logged in to leave comments.
Login now