comparison mercurial/util.py @ 7947:a454eeb1b827

move util.Abort to error.py
author Matt Mackall <mpm@selenic.com>
date Fri, 03 Apr 2009 13:20:52 -0500
parents 1b1b3dd630a5
children de377b1a9a84
comparison
equal deleted inserted replaced
7946:9d36291f787a 7947:a454eeb1b827
331 blen = 0 331 blen = 0
332 buf = [] 332 buf = []
333 if buf: 333 if buf:
334 yield ''.join(buf) 334 yield ''.join(buf)
335 335
336 class Abort(Exception): 336 Abort = error.Abort
337 """Raised if a command needs to print an error and exit."""
338 337
339 def always(fn): return True 338 def always(fn): return True
340 def never(fn): return False 339 def never(fn): return False
341 340
342 def patkind(name, default): 341 def patkind(name, default):