1
# Copyright (C) 2004, 2005, 2006 by Canonical Ltd
1
# Copyright (C) 2004, 2005 by Canonical Ltd
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
# TODO: For things like --diff-prefix, we want a way to customize the display
18
# of the option argument.
22
from bzrlib.trace import warning
20
import bzrlib.commands
21
from bzrlib.trace import warning, mutter
23
22
from bzrlib.revisionspec import RevisionSpec
24
23
from bzrlib.errors import BzrCommandError
134
133
argname -- name of option argument, if any
136
135
# TODO: perhaps a subclass that automatically does
137
# --option, --no-option for reversible booleans
136
# --option, --no-option for reversable booleans
162
161
_global_option('overwrite', help='Ignore differences between branches and '
163
162
'overwrite unconditionally')
164
163
_global_option('basis', type=str)
165
_global_option('bound')
166
164
_global_option('diff-options', type=str)
167
165
_global_option('help',
168
166
help='show help message')
172
170
_global_option('forward')
173
171
_global_option('message', type=unicode)
174
172
_global_option('no-recurse')
175
_global_option('prefix', type=str,
176
help='Set prefixes to added to old and new filenames, as '
177
'two values separated by a colon.')
178
173
_global_option('profile',
179
174
help='show performance profiling information')
180
175
_global_option('revision', type=_parse_revision_str)
176
_global_option('short')
181
177
_global_option('show-ids',
182
178
help='show internal object ids')
183
179
_global_option('timezone',
185
181
help='display timezone as local, original, or utc')
186
_global_option('unbound')
187
182
_global_option('verbose',
188
183
help='display more information')
189
184
_global_option('version')
190
185
_global_option('email')
191
186
_global_option('update')
192
_global_option('log-format', type=str, help="Use this log format")
193
_global_option('long', help='Use detailed log format. Same as --log-format long')
194
_global_option('short', help='Use moderately short log format. Same as --log-format short')
195
_global_option('line', help='Use log format with one line per revision. Same as --log-format line')
187
_global_option('long', help='Use detailed log format')
188
_global_option('short', help='Use moderately short log format')
189
_global_option('line', help='Use log format with one line per revision')
196
190
_global_option('root', type=str)
197
191
_global_option('no-backup')
198
_global_option('merge-type', type=_parse_merge_type,
199
help='Select a particular merge algorithm')
192
_global_option('merge-type', type=_parse_merge_type)
200
193
_global_option('pattern', type=str)
201
194
_global_option('quiet')
202
195
_global_option('remember', help='Remember the specified location as a'