source: soft/build_system/build_system/repsys/trunk/RepSys/commands/ci.py @ 1

Last change on this file since 1 was 1, checked in by fasma, 12 years ago

Initial Import from Mandriva's soft revision 224062 and package revision 45733

File size: 715 bytes
Line 
1#!/usr/bin/python
2from RepSys.command import *
3from RepSys.rpmutil import commit
4
5HELP = """\
6Usage: repsys ci [TARGET]
7
8Will commit a change. The difference between an ordinary "svn ci" and
9"repsys ci" is that it relocates the working copy to the default repository
10in case the option "mirror" is set in repsys.conf.
11
12Options:
13    -h      Show this message
14
15Examples:
16    repsys ci
17    repsys ci SPECS/package.spec SPECS/package-patch.patch
18"""
19
20def parse_options():
21    parser = OptionParser(help=HELP)
22    parser.add_option("-m", dest="message", default=None)
23    opts, args = parser.parse_args()
24    if len(args):
25        opts.target = args[0]
26    return opts
27
28def main():
29    do_command(parse_options, commit)
Note: See TracBrowser for help on using the repository browser.