equal
deleted
inserted
replaced
2827 expectedtype = opts.get('local') and 'local' or 'global' |
2827 expectedtype = opts.get('local') and 'local' or 'global' |
2828 for n in names: |
2828 for n in names: |
2829 if not repo.tagtype(n): |
2829 if not repo.tagtype(n): |
2830 raise util.Abort(_('tag \'%s\' does not exist') % n) |
2830 raise util.Abort(_('tag \'%s\' does not exist') % n) |
2831 if repo.tagtype(n) != expectedtype: |
2831 if repo.tagtype(n) != expectedtype: |
2832 raise util.Abort(_('tag \'%s\' is not a %s tag') % |
2832 if expectedtype == 'global': |
2833 (n, expectedtype)) |
2833 raise util.Abort(_('tag \'%s\' is not a global tag') % n) |
|
2834 else: |
|
2835 raise util.Abort(_('tag \'%s\' is not a local tag') % n) |
2834 rev_ = nullid |
2836 rev_ = nullid |
2835 if not message: |
2837 if not message: |
2836 message = _('Removed tag %s') % ', '.join(names) |
2838 message = _('Removed tag %s') % ', '.join(names) |
2837 elif not opts.get('force'): |
2839 elif not opts.get('force'): |
2838 for n in names: |
2840 for n in names: |