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