From 007212afccceca682e0f98f2871398a3ff35db03 Mon Sep 17 00:00:00 2001 From: Bogdano Arendartchuk Date: Tue, 5 Feb 2008 20:47:14 +0000 Subject: Added option -F to repsys ci, as in svn ci --- RepSys/rpmutil.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'RepSys/rpmutil.py') diff --git a/RepSys/rpmutil.py b/RepSys/rpmutil.py index a461fc2..7481b72 100644 --- a/RepSys/rpmutil.py +++ b/RepSys/rpmutil.py @@ -437,7 +437,7 @@ def sync(dryrun=False): if not dryrun: svn.add(path, local=True) -def commit(target=".", message=None): +def commit(target=".", message=None, logfile=None): svn = SVN() status = svn.status(target, quiet=True) if not status: @@ -453,10 +453,13 @@ def commit(target=".", message=None): print "relocated to", newurl # we can't use the svn object here because svn --non-interactive option # hides VISUAL - mopt = "" + opts = [] if message is not None: - mopt = "-m \"%s\"" % message - os.system("svn ci %s %s" % (mopt, target)) + opts.append("-m \"%s\"" % message) + if logfile is not None: + opts.append("-F \"%s\"" % logfile) + mopts = " ".join(opts) + os.system("svn ci %s %s" % (mopts, target)) if mirrored: print "use \"repsys switch\" in order to switch back to mirror "\ "later" -- cgit v1.2.1