Commit Graph

43 Commits

Author SHA1 Message Date
Nathan Phillip Brink
f10dea040c Mercurial: Fix vcs_commit() so that a commit message is specified. Also, fix relative path names so that one can remove a package by running sunrise-commit from a category directory instead of from a repository's root directory. 2010-09-20 10:48:39 -04:00
Nathan Phillip Brink
779394ac1f When removing a package and grepping ofr package references, don't let grep complain if profiles/package.mask doesn't exist. 2010-09-20 10:20:52 -04:00
Nathan Phillip Brink
0d1ac07ef7 Mercurial: In vcs_reset(), the hg revert command was creating backups of files with names similar to ChangeLog.orig. The introduction of new files prevents a successful commit because the new file isn't included into the repository. Now we request that no backups be made when reverting a file. 2010-09-15 01:38:17 -04:00
Michał Górny
c8da172252 Silence the 'hg tip' call. 2010-08-26 18:54:14 +02:00
Nathan Phillip Brink
ff91dba58c Add notes to the manpage: DVCSes will not have ChangeLogs created automatically; there is no automatic pulling for DVCSes. 2010-08-25 18:52:18 -04:00
Michał Górny
08827d56e1 Simplify checking exit code 0. 2010-08-26 00:08:21 +02:00
Michał Górny
16a8ff2d6d Simplify logic. 2010-08-25 23:59:17 +02:00
Michał Górny
b381a62c21 Update manpage to state Mercurial support. 2010-08-25 23:57:17 +02:00
Michał Górny
e9c45a709a 'Unsunrise' the script description.
sunrise-commit can be used basically with any repository, not
necessarily Sunrise.
2010-08-25 23:54:12 +02:00
Nathan Phillip Brink
60a91f15d3 Mercurial support. 2010-08-24 23:40:55 +02:00
Michał Górny
51e3d9cd78 Grep within metadata.xml too. 2010-08-14 15:55:51 +02:00
Michał Górny
6fbc0a0042 Grep for removed package references before removal.
Use 'grep' to catch references to removed packages within other Sunrise
ebuilds (*DEPEND) and package.mask.
2010-08-12 23:01:43 +02:00
Michał Górny
5249ec662b Filter SC_CHANGE_LIST completely, introduce SC_REMOVED_PACKAGE_LIST.
When filtering SC_CHANGE_LIST entries for SC_CP, filter the
SC_CHANGE_LIST variable as well. Additionally, create
SC_REMOVED_PACKAGE_LIST as a clean copy of the list (without
eclass/license/profile changes appended).
2010-08-12 22:40:21 +02:00
Michał Górny
f04a536617 Mark as the 0.3_pre1 version. 2010-08-06 18:13:25 +02:00
Michał Górny
b111e8235d Add an additional newline before confirmation. 2010-08-06 08:29:40 +02:00
Nathan Phillip Brink
633bb44fae Some improvements to consistency and clarity for sunrise-commit(1). 2010-07-13 23:47:31 -04:00
Michał Górny
0dca83a452 Use 'git checkout HEAD' instead of reset+checkout.
Thanks for the suggestion to Jonathan Callen.
2010-07-13 18:45:50 +02:00
Michał Górny
671838fee9 Run Sunrise-specific checks only when in Sunrise. 2010-07-13 18:41:13 +02:00
Michał Górny
b8faaae3c7 Use 'svn revert' to clean/restore ChangeLog.
Unlike 'svn up', 'svn revert' doesn't require network access and
preserves current revision.
2010-07-13 17:39:49 +02:00
Michał Górny
304ef4db49 Separate filenames from options whenever necessary. Style.
Whenever we're using dynamically-passed filenames, use '--' to separate
them from options. Additionally, always use braces around variable
names.
2010-07-13 17:34:42 +02:00
Michał Górny
72435c1a73 Interact with VCS directly when checking whole directory removal.
Use VCS functions to check whether the cached/to-be-committed version of
the working tree contains the particular directory instead of using the
local working tree. Thanks to that, the functions no longer care about
stray files.
2010-07-13 17:26:36 +02:00
Michał Górny
d50f6a7282 General cleanup, comments added. 2010-07-13 17:15:51 +02:00
Michał Górny
d16eb30d2b Support --noformat and --quiet. 2010-07-13 12:26:14 +02:00
Michał Górny
b7bac5aeed Support calling 'svn up' before performing the commit. 2010-07-13 12:15:25 +02:00
Michał Górny
1cbbf1b7c9 Introduce the manpage. 2010-07-13 11:47:00 +02:00
Nathan Phillip Brink
9558a3ecbb Quick English review (I can't find much to improve :-p). 2010-07-12 12:18:42 -04:00
Michał Górny
3e7de31fb0 Manually call repoman manifest/full with old repoman.
If we're using old repoman version, call 'repoman full' before asking
for confirmation to allow fixing minor problems before committing. That
implies calling 'repoman manifest' too.

Additionally, don't complain about outdated repoman before the patched
version is released.
2010-07-12 15:34:14 +02:00
Michał Górny
4056d1996b Use 'sed -n' instead of implicit line removal. 2010-07-12 15:09:37 +02:00
Michał Górny
b2d4d1df00 Native subversion support. 2010-07-12 14:59:56 +02:00
Michał Górny
364ade7b73 Complain about unknown options. 2010-07-12 13:47:50 +02:00
Michał Górny
80434064dc Support for initial commits.
'git checkout' can fail when file is not in index, thus we should
fallback to removing the file. Support adding metadata.xml like old
sunrise-commit did.
2010-07-12 13:43:17 +02:00
Michał Górny
92ead735d0 Support package removals. 2010-07-12 13:27:39 +02:00
Michał Górny
20a30502bc Adjust version number to be continuos with overlay-utils. 2010-07-12 12:11:51 +02:00
Michał Górny
349d6ae12f Support passing --force to repoman. 2010-07-12 11:45:15 +02:00
Michał Górny
0786203159 Add --trivial option for trivial changes.
This one causes sunrise-commit to not update the ChangeLog on a trivial
change (e.g. a Manifest fix).
2010-07-12 11:36:23 +02:00
Michał Górny
6cfe72f59e Do not quote in simple assignments. 2010-07-12 11:30:54 +02:00
Michał Górny
b4454e4e95 Support colorful output. 2010-07-12 11:27:40 +02:00
Michał Górny
cdc95c4595 Fix '-?'-caused pattern match. 2010-07-12 11:15:51 +02:00
Michał Górny
b7d084e3ff Fix bug number display and check for invalid ID. 2010-07-12 10:37:19 +02:00
Michał Górny
4272f47b04 Support --help, --version and --changelog. 2010-07-12 10:32:18 +02:00
Michał Górny
fd1dc7ae28 Support old repoman versions.
If repoman doesn't support '-a', drop it and ask before calling it.
2010-07-12 10:20:31 +02:00
Michał Górny
94e04f960c Describe bugs in ChangeLog entries, print VCS status.
Don't count ChangeLog edits to changes. Require the first ChangeLog
entry to contain a bug number for the new ebuild. Describe all bugs
appearing in the ChangeLog entry. Print out VCS status before starting
to commit.
2010-07-12 09:39:11 +02:00
Michał Górny
a15315093e Introduce new sunrise-commit implementation.
It is basically a nice frontend to call 'echangelog' and 'repoman
commit'. The current code supports git only, and works only inside the
package directory. Additionally, it requires new enough repoman (which
means live portage version right now).
2010-07-12 00:16:24 +02:00