if len(args) == 1:
workdir = os.path.abspath(args[0])
- if opts.commit and opts.include_uncommited:
+ if opts.commit and opts.include_all:
raise errors.Usage('--commit can\'t be specified together with '\
- '--include-uncommited')
+ '--include-all')
try:
repo = RpmGitRepository(workdir)
if stat == '??':
continue
uncommitted_files.extend(status[stat])
- if not is_clean and not opts.include_uncommited:
+ if not is_clean and not opts.include_all:
if untracked_files:
msger.warning('the following untracked files would be not be '\
'included:\n %s' % '\n '.join(untracked_files))
if uncommitted_files:
msger.warning('the following uncommited changes would not be '\
'included:\n %s' % '\n '.join(uncommitted_files))
- msger.warning('you can specify \'--include-uncommited\' option to '\
+ msger.warning('you can specify \'--include-all\' option to '\
'include these uncommited and untracked files.')
- if opts.include_uncommited:
+ if opts.include_all:
if untracked_files:
msger.info('the following untracked files would be included' \
':\n %s' % '\n '.join(untracked_files))
with utils.Workdir(workdir):
if opts.commit:
commit = opts.commit
- elif opts.include_uncommited:
+ elif opts.include_all:
commit = 'WC.UNTRACKED'
else:
commit = 'HEAD'
if len(args) == 1:
workdir = os.path.abspath(args[0])
- if opts.commit and opts.include_uncommited:
+ if opts.commit and opts.include_all:
raise errors.Usage('--commit can\'t be specified together with '\
- '--include-uncommited')
+ '--include-all')
try:
repo = RpmGitRepository(workdir)
if stat == '??':
continue
uncommitted_files.extend(status[stat])
- if not is_clean and not opts.include_uncommited:
+ if not is_clean and not opts.include_all:
if untracked_files:
msger.warning('the following untracked files would be not be '\
'included:\n %s' % '\n '.join(untracked_files))
if uncommitted_files:
msger.warning('the following uncommited changes would not be '\
'included:\n %s' % '\n '.join(uncommitted_files))
- msger.warning('you can specify \'--include-uncommited\' option to '\
+ msger.warning('you can specify \'--include-all\' option to '\
'include these uncommited and untracked files.')
- if opts.include_uncommited:
+ if opts.include_all:
if untracked_files:
msger.info('the following untracked files would be included' \
':\n %s' % '\n '.join(untracked_files))
with utils.Workdir(workdir):
if opts.commit:
commit = opts.commit
- elif opts.include_uncommited:
+ elif opts.include_all:
commit = 'WC.UNTRACKED'
else:
commit = 'HEAD'
msger.error('empty user is not allowed for remotebuild, '\
'please add user/passwd to gbs conf, and try again')
- if opts.commit and opts.include_uncommited:
+ if opts.commit and opts.include_all:
raise errors.Usage('--commit can\'t be specified together with '\
- '--include-uncommited')
+ '--include-all')
try:
repo = repository.GitRepository(workdir)
if stat == '??':
continue
uncommitted_files.extend(status[stat])
- if not is_clean and not opts.include_uncommited and not \
+ if not is_clean and not opts.include_all and not \
(opts.buildlog or opts.status):
if untracked_files:
msger.warning('the following untracked files would be not be '\
if uncommitted_files:
msger.warning('the following uncommited changes would not be '\
'included:\n %s' % '\n '.join(uncommitted_files))
- msger.warning('you can specify \'--include-uncommited\' option to '\
+ msger.warning('you can specify \'--include-all\' option to '\
'include these uncommited and untracked files.')
- if opts.include_uncommited and not (opts.buildlog or opts.status):
+ if opts.include_all and not (opts.buildlog or opts.status):
if untracked_files:
msger.info('the following untracked files would be included' \
':\n %s' % '\n '.join(untracked_files))
with utils.Workdir(workdir):
if opts.commit:
commit = opts.commit
- elif opts.include_uncommited:
+ elif opts.include_all:
commit = 'WC.UNTRACKED'
else:
commit = 'HEAD'
default=None,
dest='commit',
help='Specify a commit ID to export')
- @cmdln.option('--include-uncommited',
+ @cmdln.option('--include-all',
action='store_true',
default=False,
- dest='include_uncommited',
- help='uncommited changes would be included while '\
- 'generating tar ball')
+ dest='include_all',
+ help='uncommited changes and untracked files would be '\
+ 'included while generating tar ball')
def do_export(self, _subcmd, opts, *args):
"""${cmd_name}: export files and prepare for build
dest='extra_packs',
help='Specify extra packages to install to build root '\
'multiple packages can be separated by comma')
- @cmdln.option('--include-uncommited',
+ @cmdln.option('--include-all',
action='store_true',
default=False,
- dest='include_uncommited',
- help='uncommited changes would be included while '\
- 'generating tar ball')
+ dest='include_all',
+ help='uncommited changes and untracked files would be '\
+ 'included while generating tar ball')
@cmdln.option('--debuginfo',
action='store_true',
default=False,
default=False,
dest='status',
help='Get build status from build server')
- @cmdln.option('--include-uncommited',
+ @cmdln.option('--include-all',
action='store_true',
default=False,
- dest='include_uncommited',
- help='uncommited changes would be included while '\
- 'generating tar ball')
+ dest='include_all',
+ help='uncommited changes and untracked files would be '\
+ 'included while generating tar ball')
def do_remotebuild(self, subcmd, opts, *args):
"""${cmd_name}: remote build package