diff options
| author | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2010-08-10 13:13:15 +0200 |
|---|---|---|
| committer | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2011-02-01 16:23:45 +0100 |
| commit | 18ea3c13dc5bcda0c086efe11809795773f5167b (patch) | |
| tree | 3c0cf9658ff6894d796df5697176ce0ad403897e /src/fedpkg.py | |
| parent | c139cc05d3101187d7292e220b1734bb03be99da (diff) | |
Add "fedpkg clone --initial-merge" argument5/initial-merge
Diffstat (limited to 'src/fedpkg.py')
| -rwxr-xr-x | src/fedpkg.py | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py index 90c3be7..75770f5 100755 --- a/src/fedpkg.py +++ b/src/fedpkg.py @@ -446,6 +446,8 @@ def clone(args): pyfedpkg.clone_with_dirs(args.module[0], user) else: pyfedpkg.clone(args.module[0], user, args.path, args.branch) + if args.initial_merge: + pyfedpkg.initial_merge.handle_repo(args.module[0]) except pyfedpkg.FedpkgError, e: log.error('Could not clone: %s' % e) sys.exit(1) @@ -947,9 +949,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') |
