Mercurial > hg-allpaths
comparison allpaths.py @ 1:f8703c9e2fb9
D'oh, actually push to the correct path.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 19 Feb 2013 17:44:04 -0800 |
parents | 6f92e4c814d1 |
children | b1d440f1027a |
comparison
equal
deleted
inserted
replaced
0:6f92e4c814d1 | 1:f8703c9e2fb9 |
---|---|
26 raise mercurial.util.Abort(_('No paths defined in section %s') % group) | 26 raise mercurial.util.Abort(_('No paths defined in section %s') % group) |
27 | 27 |
28 # Push! | 28 # Push! |
29 for path in paths: | 29 for path in paths: |
30 try: | 30 try: |
31 mercurial.commands.push(ui, repo, **push_opts) | 31 mercurial.commands.push(ui, repo, path[1], **push_opts) |
32 except Exception as e: | 32 except Exception as e: |
33 if not opts.get('ignore_errors'): | 33 if not opts.get('ignore_errors'): |
34 raise | 34 raise |
35 ui.warn(_('error pushing to %s: %s') % (path, e)) | 35 ui.warn(_('error pushing to %s: %s') % (path[1], e)) |
36 | 36 |
37 | 37 |
38 cmdtable = { | 38 cmdtable = { |
39 "pushall": | 39 "pushall": |
40 ( | 40 ( |