mercurial/util.py
changeset 7641 d2f753830f80
parent 7632 9626819b2e3d
child 7644 182b7114d35a
equal deleted inserted replaced
7640:7197812e8d44 7641:d2f753830f80
   332     if buf:
   332     if buf:
   333         yield ''.join(buf)
   333         yield ''.join(buf)
   334 
   334 
   335 class Abort(Exception):
   335 class Abort(Exception):
   336     """Raised if a command needs to print an error and exit."""
   336     """Raised if a command needs to print an error and exit."""
   337 
       
   338 class UnexpectedOutput(Abort):
       
   339     """Raised to print an error with part of output and exit."""
       
   340 
   337 
   341 def always(fn): return True
   338 def always(fn): return True
   342 def never(fn): return False
   339 def never(fn): return False
   343 
   340 
   344 def expand_glob(pats):
   341 def expand_glob(pats):