Show More
@@ -263,11 +263,13 b' def _status(ui, repo, kwt, *pats, **opts' | |||||
263 |
|
263 | |||
264 | def _kwfwrite(ui, repo, expand, *pats, **opts): |
|
264 | def _kwfwrite(ui, repo, expand, *pats, **opts): | |
265 | '''Selects files and passes them to kwtemplater.overwrite.''' |
|
265 | '''Selects files and passes them to kwtemplater.overwrite.''' | |
|
266 | if repo.dirstate.parents()[1] != nullid: | |||
|
267 | raise util.Abort(_('outstanding uncommitted merge')) | |||
266 | kwt = kwtools['templater'] |
|
268 | kwt = kwtools['templater'] | |
267 | status = _status(ui, repo, kwt, *pats, **opts) |
|
269 | status = _status(ui, repo, kwt, *pats, **opts) | |
268 | modified, added, removed, deleted, unknown, ignored, clean = status |
|
270 | modified, added, removed, deleted, unknown, ignored, clean = status | |
269 | if modified or added or removed or deleted: |
|
271 | if modified or added or removed or deleted: | |
270 |
raise util.Abort(_('outstanding uncommitted changes |
|
272 | raise util.Abort(_('outstanding uncommitted changes')) | |
271 | wlock = lock = None |
|
273 | wlock = lock = None | |
272 | try: |
|
274 | try: | |
273 | wlock = repo.wlock() |
|
275 | wlock = repo.wlock() |
@@ -350,7 +350,7 b' 1 files updated, 0 files merged, 0 files' | |||||
350 | % kwexpand a |
|
350 | % kwexpand a | |
351 | overwriting a expanding keywords |
|
351 | overwriting a expanding keywords | |
352 | % kwexpand x/a should abort |
|
352 | % kwexpand x/a should abort | |
353 |
abort: outstanding uncommitted changes |
|
353 | abort: outstanding uncommitted changes | |
354 | x/a |
|
354 | x/a | |
355 | x/a: copy a:779c764182ce5d43e2b1eb66ce06d7b47bfe342e |
|
355 | x/a: copy a:779c764182ce5d43e2b1eb66ce06d7b47bfe342e | |
356 | overwriting x/a expanding keywords |
|
356 | overwriting x/a expanding keywords |
General Comments 0
You need to be logged in to leave comments.
Login now