2010-10-30 19:11:22 +02:00
|
|
|
.TH SUNRISE-COMMIT 1 "13 Jul 2010" "@PACKAGE_STRING@" "User Commands"
|
2010-07-13 11:47:00 +02:00
|
|
|
|
|
|
|
.SH NAME
|
|
|
|
|
2010-08-25 23:54:12 +02:00
|
|
|
sunrise-commit \- a Gentoo repository commit helper.
|
2010-07-13 11:47:00 +02:00
|
|
|
|
|
|
|
.SH SYNOPSIS
|
|
|
|
|
|
|
|
.B sunrise-commit
|
|
|
|
[options]
|
|
|
|
[--]
|
|
|
|
.I <commit-message>
|
|
|
|
|
|
|
|
.SH DESCRIPTION
|
|
|
|
|
|
|
|
.B sunrise-commit
|
2010-08-25 23:54:12 +02:00
|
|
|
is a helper script for Gentoo repository commiters. Apart from
|
|
|
|
performing the actual commit, it performs the following tasks:
|
2010-07-13 11:47:00 +02:00
|
|
|
|
2010-07-14 05:47:31 +02:00
|
|
|
\- performs basic integrity and QA checks on the modified packages,
|
2010-07-13 11:47:00 +02:00
|
|
|
|
|
|
|
\- handles ChangeLog and Manifest updates,
|
|
|
|
|
|
|
|
\- prepends the commit message with package name(s).
|
|
|
|
|
2010-10-27 22:22:46 +02:00
|
|
|
The script supports CVS, GIT, Mercurial, and Subversion repositories.
|
|
|
|
For the latter, it supports native checkouts as well as git-svn.
|
2010-07-13 11:47:00 +02:00
|
|
|
|
2010-08-26 00:52:18 +02:00
|
|
|
Please note that when used with DVCSes, this script only performs the
|
2010-08-25 23:57:17 +02:00
|
|
|
actual commit. (It does not push or dcommit it to the repository).
|
2010-10-27 22:22:46 +02:00
|
|
|
However, native Subversion and CVS commits are sent directly to the remote
|
|
|
|
repository (due to limitations of non-distributed VCSes).
|
2010-07-13 11:47:00 +02:00
|
|
|
|
|
|
|
.SH OPTIONS
|
|
|
|
|
|
|
|
.IP "\fB-c\fP, \fB--changelog\fP"
|
|
|
|
|
2010-07-14 05:47:31 +02:00
|
|
|
Ignored (provided for backwards compatibility). ChangeLog entries are
|
|
|
|
now created as needed. Use \fB--trivial\fP to suppress creation of
|
|
|
|
ChangeLog entries.
|
2010-07-13 11:47:00 +02:00
|
|
|
|
2010-08-26 00:52:18 +02:00
|
|
|
Because of the nature of DVCSes, a ChangeLog will not be created for a
|
|
|
|
new ebuild in a GIT or Mercurial repository. However, if the ebuild
|
|
|
|
already has a ChangeLog file, it will be updated. One consideration is
|
|
|
|
that if a ChangeLog file is maintained and the repository needs to be
|
|
|
|
merged after two people adjust the same ebuild, the ChangeLog will
|
|
|
|
cause merge conflicts. Also, viewing a DVCS's log does not require an
|
|
|
|
Internet connection.
|
|
|
|
|
2010-07-13 11:47:00 +02:00
|
|
|
.IP "\fB-C\fP, \fB--nocolor\fP"
|
|
|
|
|
2010-07-14 05:47:31 +02:00
|
|
|
Disable colorful output (for terminals which do not support escape
|
|
|
|
sequences).
|
2010-07-13 11:47:00 +02:00
|
|
|
|
2010-07-13 12:15:25 +02:00
|
|
|
.IP "\fB-d\fP, \fB--noupdate\fP"
|
|
|
|
|
2010-08-26 00:52:18 +02:00
|
|
|
Do not update and rebase the repository before proceeding with the
|
2010-10-27 22:22:46 +02:00
|
|
|
commit. This option only applies to Subversion and CVS repositories.
|
|
|
|
It makes no sense to automatically pull from remote DVCS repositories.
|
2010-07-13 12:15:25 +02:00
|
|
|
|
2010-07-13 11:47:00 +02:00
|
|
|
.IP "\fB-f\fP, \fB--force\fP"
|
|
|
|
|
2010-07-14 05:47:31 +02:00
|
|
|
Force proceeding with the commit even if QA violations occur. With
|
|
|
|
this option, errors from `\fIrepoman full\fP' will be ignored and
|
|
|
|
\fB--force\fP is passed to `\fIrepoman commit\fP'.
|
2010-07-13 11:47:00 +02:00
|
|
|
|
2010-07-13 12:26:14 +02:00
|
|
|
.IP "\fB-m\fP, \fB--noformat\fP"
|
|
|
|
|
2010-07-14 05:47:31 +02:00
|
|
|
Do not prepend the commit message with package names.
|
2010-07-13 12:26:14 +02:00
|
|
|
|
|
|
|
.IP "\fB-q\fP, \fB--quiet\fP"
|
|
|
|
|
2010-07-14 05:47:31 +02:00
|
|
|
Ignored (provided for backwards compatibility).
|
2010-07-13 12:26:14 +02:00
|
|
|
|
2010-07-13 11:47:00 +02:00
|
|
|
.IP "\fB-t\fP, \fB--trivial\fP"
|
|
|
|
|
2010-07-14 05:47:31 +02:00
|
|
|
Assume the changes are trivial and thus do not require a ChangeLog
|
|
|
|
entry. Examples of trivial changes include updating Manifests and
|
|
|
|
minor correction of previous ChangeLog entries.
|
2010-07-13 11:47:00 +02:00
|
|
|
|
|
|
|
.IP "\fB-v\fP, \fB--verbose\fP"
|
|
|
|
|
2010-07-14 05:47:31 +02:00
|
|
|
Enable verbose output. Useful mostly for debugging.
|
2010-07-13 11:47:00 +02:00
|
|
|
|
|
|
|
.IP "\fB-?\fP, \fB-h\fP, \fB--help\fP"
|
|
|
|
|
2010-07-14 05:47:31 +02:00
|
|
|
Print a short help message and exit.
|
2010-07-13 11:47:00 +02:00
|
|
|
|
2010-07-14 05:47:31 +02:00
|
|
|
.IP "\fB-V\fP, \fB--version\fP"
|
2010-07-13 11:47:00 +02:00
|
|
|
|
2010-07-14 05:47:31 +02:00
|
|
|
Print the version string and exit.
|
2010-07-13 11:47:00 +02:00
|
|
|
|
|
|
|
.SH ENVIRONMENT
|
|
|
|
|
|
|
|
.IP ECHANGELOG_USER
|
|
|
|
|
|
|
|
the committer name and e-mail as it would appear in ChangeLog.
|
|
|
|
The sunrise-suggested format is:
|
|
|
|
|
|
|
|
.IR "Real Name" " (" nickname ") <" e-mail >
|
|
|
|
|
2010-07-14 05:47:31 +02:00
|
|
|
`\fInickname\fP' corresponds to the committer's IRC nickname.
|
2010-07-13 11:47:00 +02:00
|
|
|
|
|
|
|
.SH EXAMPLES
|
|
|
|
|
2010-07-14 05:47:31 +02:00
|
|
|
All of the following examples assume that the committer is using a
|
|
|
|
native Subversion repository and that the initial working directory is
|
|
|
|
the branch's or repository's root.
|
2010-07-13 11:47:00 +02:00
|
|
|
|
|
|
|
.I "1. Adding a new ebuild:"
|
|
|
|
|
|
|
|
.nf
|
|
|
|
$ svn mkdir app-foo/bar
|
|
|
|
$ cd app-foo/bar
|
|
|
|
[...]
|
|
|
|
$ svn add bar-1.ebuild
|
|
|
|
$ sunrise-commit 'New ebuild for bug #nnnnnn.'
|
|
|
|
.fi
|
|
|
|
|
|
|
|
.I "2. Performing a version bump:"
|
|
|
|
|
|
|
|
.nf
|
|
|
|
$ cd app-foo/bar
|
|
|
|
$ svn mv bar-1.ebuild bar-2.ebuild
|
|
|
|
[...]
|
|
|
|
$ sunrise-commit 'Version bump.'
|
|
|
|
.fi
|
|
|
|
|
|
|
|
.I "3. Fixing a broken Manifest:"
|
|
|
|
|
|
|
|
.nf
|
|
|
|
$ cd app-foo/bar
|
|
|
|
$ sunrise-commit -t 'Fixing a broken Manifest.'
|
|
|
|
.fi
|
|
|
|
|
2010-07-14 05:47:31 +02:00
|
|
|
(\fB sunrise-commit\fP always updates the Manifest)
|
2010-07-13 11:47:00 +02:00
|
|
|
|
|
|
|
.I "4. Removing a package which was added to gx86:"
|
|
|
|
|
|
|
|
.nf
|
|
|
|
$ svn rm app-foo/bar
|
2010-10-30 20:15:40 +02:00
|
|
|
$ sunrise-commit -f 'in gx86.'
|
2010-07-13 11:47:00 +02:00
|
|
|
.fi
|
|
|
|
|
|
|
|
.SH "REPORTING BUGS"
|
|
|
|
|
|
|
|
Please report bugs via Gentoo Bugzilla:
|
|
|
|
|
|
|
|
.I http://bugs.gentoo.org/
|
|
|
|
|
2010-10-30 20:15:40 +02:00
|
|
|
.SH AUTHORS
|
2010-07-13 11:47:00 +02:00
|
|
|
|
|
|
|
Michal Gorny <gentoo@mgorny.alt.pl>
|
|
|
|
|
2010-10-30 20:15:40 +02:00
|
|
|
Nathan Phillip Brink <ohnobinki@ohnopublishing.net>
|
2010-08-25 23:57:17 +02:00
|
|
|
|
2010-07-13 11:47:00 +02:00
|
|
|
.SH "SEE ALSO"
|
|
|
|
|
|
|
|
.BR ebuild (5),
|
|
|
|
.BR echangelog (1),
|
2010-10-27 22:22:46 +02:00
|
|
|
.BR cvs (1),
|
2010-07-14 05:47:31 +02:00
|
|
|
.BR git (1),
|
2010-08-26 00:52:18 +02:00
|
|
|
.BR hg (1),
|
2010-07-14 05:47:31 +02:00
|
|
|
.BR repoman (1),
|
|
|
|
.BR svn (1)
|