summaryrefslogtreecommitdiffstats
path: root/src/fedpkg.py
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2010-08-10 13:13:15 +0200
committerHans Ulrich Niedermann <hun@n-dimensional.de>2010-08-10 16:36:28 +0200
commit0e3f5570181777e6dfdeadb3d65ded4615435430 (patch)
tree053602427731267b8c90f05b7a619a74d7a70f60 /src/fedpkg.py
parent3a35f9edf51a1b23fc6598ca491b2de4bd8eda9b (diff)
downloadfedora-packager-initial-merge-command/2.tar.gz
fedora-packager-initial-merge-command/2.tar.xz
fedora-packager-initial-merge-command/2.zip
Add "fedpkg clone --initial-merge" argumentinitial-merge-command/2
Diffstat (limited to 'src/fedpkg.py')
-rwxr-xr-xsrc/fedpkg.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py
index cee3c1c..15bec05 100755
--- a/src/fedpkg.py
+++ b/src/fedpkg.py
@@ -410,6 +410,8 @@ def clone(args):
pyfedpkg.clone_with_dirs(module, args.user)
else:
pyfedpkg.clone(module, args.user, args.path, args.branch)
+ if args.initial_merge:
+ pyfedpkg.initial_merge.handle_repo(module)
except pyfedpkg.FedpkgError, e:
log.error('Could not clone: %s' % e)
sys.exit(1)
@@ -732,9 +734,15 @@ packages will be built sequentially.
parser_clone = subparsers.add_parser('clone',
help = 'Clone and checkout a module')
# Allow an old style clone with subdirs for branches
- parser_clone.add_argument('--branches', '-B',
- action = 'store_true',
- help = 'Do an old style checkout with subdirs for branches')
+ parser_clone_branches_group = parser_clone.add_mutually_exclusive_group()
+ parser_clone_branches_group.add_argument(
+ '--branches', '-B',
+ action = 'store_true',
+ help = 'Do an old style checkout with subdirs for branches')
+ parser_clone_branches_group.add_argument(
+ '--initial-merge', '-i',
+ action = 'store_true',
+ help = 'Run initial-merge on the cloned repo immediately')
# provide a convenient way to get to a specific branch
parser_clone.add_argument('--branch', '-b',
help = 'Check out a specific branch')