from repoman.herdbase import make_herd_base
from _emerge.Package import Package
from _emerge.RootConfig import RootConfig
+from _emerge.userquery import userquery
import portage.checksum
import portage.const
import portage.dep
parser.description += "\nDistributed under the terms of the GNU General Public License v2"
parser.description += "\nmodes: " + " | ".join(map(green,mode_keys))
+ parser.add_option('-a', '--ask', dest='ask',
+ help='Request a confirmation before commiting')
+
parser.add_option('-m', '--commitmsg', dest='commitmsg',
help='specify a commit message on the command line')
commitmessage += ", RepoMan options: --force"
commitmessage += ")"
+ if options.ask and userquery('Commit changes?', True) != 'Yes':
+ print("* aborting commit.")
+ sys.exit(1)
+
if vcs in ('cvs', 'svn') and (myupdates or myremoved):
myfiles = myupdates + myremoved
if not myheaders and "sign" not in repoman_settings.features:
Note: \fBrepoman commit\fR only works \fIinside local\fR cvs, git, or subversion repositories.
.SH OPTIONS
.TP
+\fB-a\fR, \fB--ask\fR
+Request a confirmation before commiting
+.TP
\fB--force\fR
Force commit to proceed, regardless of QA issues. For convenience, this option
causes the most time consuming QA checks to be skipped. The commit message will