Mercurial > hg > mercurial-crew-with-dirclash
comparison hgext/mq.py @ 3069:bc3fe3b5b785
Never apply string formatting to generated errors with util.Abort.
Otherwise error messages containing % chars yield errors or worse.
Fixed (hopefully) all users of util.Abort.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 08 Sep 2006 09:36:18 +0200 |
parents | a4374f7331e4 |
children | 1a792e4a1f3a |
comparison
equal
deleted
inserted
replaced
3068:547d1a4aa105 | 3069:bc3fe3b5b785 |
---|---|
1477 q = repo.mq | 1477 q = repo.mq |
1478 | 1478 |
1479 if not files: | 1479 if not files: |
1480 raise util.Abort(_('qfold requires at least one patch name')) | 1480 raise util.Abort(_('qfold requires at least one patch name')) |
1481 if not q.check_toppatch(repo): | 1481 if not q.check_toppatch(repo): |
1482 raise util.Abort(_('No patches applied\n')) | 1482 raise util.Abort(_('No patches applied')) |
1483 | 1483 |
1484 message = commands.logmessage(opts) | 1484 message = commands.logmessage(opts) |
1485 if opts['edit']: | 1485 if opts['edit']: |
1486 if message: | 1486 if message: |
1487 raise util.Abort(_('option "-e" incompatible with "-m" or "-l"')) | 1487 raise util.Abort(_('option "-e" incompatible with "-m" or "-l"')) |