contrib/revsetbenchmarks.py
branchstable
changeset 21202 c04e5e937139
parent 20893 b5de9dde181c
child 21286 f0f810096842
equal deleted inserted replaced
21201:c8b9c6147108 21202:c04e5e937139
    20     kwargs.setdefault('stderr', PIPE)
    20     kwargs.setdefault('stderr', PIPE)
    21     kwargs.setdefault('stdout', PIPE)
    21     kwargs.setdefault('stdout', PIPE)
    22     proc = Popen(*args, **kwargs)
    22     proc = Popen(*args, **kwargs)
    23     output, error = proc.communicate()
    23     output, error = proc.communicate()
    24     if proc.returncode != 0:
    24     if proc.returncode != 0:
    25         raise CalledProcessError(proc.returncode, ' '.join(args))
    25         raise CalledProcessError(proc.returncode, ' '.join(args[0]))
    26     return output
    26     return output
    27 
    27 
    28 def update(rev):
    28 def update(rev):
    29     """update the repo to a revision"""
    29     """update the repo to a revision"""
    30     try:
    30     try: