comparison mercurial/commands.py @ 2134:ef81e34ad674

write to stderr with a single write call. this works around issue88.
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Wed, 26 Apr 2006 10:57:40 -0700
parents 8a85dbbadddf
children 11ad47f22023
comparison
equal deleted inserted replaced
2133:4334be196f8d 2134:ef81e34ad674
3445 (inst.args[0], " ".join(inst.args[1]))) 3445 (inst.args[0], " ".join(inst.args[1])))
3446 except UnknownCommand, inst: 3446 except UnknownCommand, inst:
3447 u.warn(_("hg: unknown command '%s'\n") % inst.args[0]) 3447 u.warn(_("hg: unknown command '%s'\n") % inst.args[0])
3448 help_(u, 'shortlist') 3448 help_(u, 'shortlist')
3449 except hg.RepoError, inst: 3449 except hg.RepoError, inst:
3450 u.warn(_("abort: "), inst, "!\n") 3450 u.warn(_("abort: %s!\n") % inst)
3451 except lock.LockHeld, inst: 3451 except lock.LockHeld, inst:
3452 if inst.errno == errno.ETIMEDOUT: 3452 if inst.errno == errno.ETIMEDOUT:
3453 reason = _('timed out waiting for lock held by %s') % inst.locker 3453 reason = _('timed out waiting for lock held by %s') % inst.locker
3454 else: 3454 else:
3455 reason = _('lock held by %s') % inst.locker 3455 reason = _('lock held by %s') % inst.locker