comparison mercurial_all_paths.py @ 31:9d595bda6f2f

Fixed buggy information printed on errors: - message lacked final newline (so further text joined it) - only first letter of path alias was printed
author Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
date Sat, 21 Nov 2015 23:34:49 +0100
parents 8cca585b11cc
children 7500a4ecb935
comparison
equal deleted inserted replaced
30:3f8c4b4a5cc6 31:9d595bda6f2f
36 try: 36 try:
37 command(ui, repo, path, **opts) 37 command(ui, repo, path, **opts)
38 except Exception as e: 38 except Exception as e:
39 if not ignore_errors: 39 if not ignore_errors:
40 raise 40 raise
41 ui.warn(_('error handling %s: %s') % (path[1], e)) 41 ui.warn(_('error handling %s: %s\n') % (alias, e))
42 42
43 43
44 def pushall(ui, repo, **opts): 44 def pushall(ui, repo, **opts):
45 """execute pull on multiple paths""" 45 """execute pull on multiple paths"""
46 _iter_over_paths(mercurial.commands.push, ui, repo, **opts) 46 _iter_over_paths(mercurial.commands.push, ui, repo, **opts)