comparison mercurial_all_paths.py @ 35:6dae5ed53f22

Setting up tests for 3.8 (not yet really tested)
author Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
date Sat, 24 Sep 2016 09:48:40 +0200
parents 7500a4ecb935
children b8a7342fbf23
comparison
equal deleted inserted replaced
34:7500a4ecb935 35:6dae5ed53f22
28 handled = {} 28 handled = {}
29 29
30 # Act! 30 # Act!
31 for alias, path in paths: 31 for alias, path in paths:
32 if path in handled: 32 if path in handled:
33 ui.note(_("Skipping %s as it aliases already handled %s\n") % (alias, handled[path])) 33 ui.note(_("Skipping %s as path %s was already handled %s\n") % (alias, handled[path]))
34 else: 34 else:
35 handled[path] = alias 35 handled[path] = alias
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:
40 raise 40 raise
41 ui.warn(_('error handling %s: %s\n') % (alias, 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 push on multiple paths"""
46 _iter_over_paths(mercurial.commands.push, ui, repo, **opts) 46 _iter_over_paths(mercurial.commands.push, ui, repo, **opts)
47 47
48 48
49 def pullall(ui, repo, **opts): 49 def pullall(ui, repo, **opts):
50 """execute push on multiple paths""" 50 """execute pull on multiple paths"""
51 _iter_over_paths(mercurial.commands.pull, ui, repo, **opts) 51 _iter_over_paths(mercurial.commands.pull, ui, repo, **opts)
52 52
53 53
54 def incomingall(ui, repo, **opts): 54 def incomingall(ui, repo, **opts):
55 """execute incoming on multiple paths""" 55 """execute incoming on multiple paths"""
89 outgoingall, 89 outgoingall,
90 EXT_OPTS + _original_options('outgoing'), 90 EXT_OPTS + _original_options('outgoing'),
91 _('[-g GROUP] [--ignore-errors] <outgoing options>')), 91 _('[-g GROUP] [--ignore-errors] <outgoing options>')),
92 } 92 }
93 93
94 testedwith = '2.7 2.9 3.0 3.3 3.6 3.7' 94 testedwith = '2.7 2.9 3.0 3.3 3.6 3.7 3.8'
95 buglink = 'https://bitbucket.org/Mekk/mercurial-all_paths/issues' 95 buglink = 'https://bitbucket.org/Mekk/mercurial-all_paths/issues'