Michał Górny
156a5d7131
Peform the repo update before calling echangelog.
2010-10-30 11:48:59 +02:00
Michał Górny
8ef4e30fc5
Pass '-d -P' to 'cvs update'.
2010-10-30 11:48:03 +02:00
Michał Górny
cee1dac95f
In CVS, don't call vcs_status if update is used already.
...
As CVS lists changes during the 'update' call, there's no reason to call
it twice. Thus, call vcs_status only if -d is used.
2010-10-30 11:44:54 +02:00
Michał Górny
849ccc9cf7
We don't expect SC_VCS to be git-cvs.
2010-10-28 18:38:49 +02:00
Michał Górny
59dd01f1c7
Don't prepend the package name when committing it to CVS.
2010-10-28 18:38:10 +02:00
Nathan Phillip Brink
3c7b7518ef
Make the -d option disable updating the local repository. It originally enabled updating the local repository, performing the reverse of its documented functionality.
2010-10-27 16:27:20 -04:00
Nathan Phillip Brink
3a3818cab3
Support CVS. I actually tested the package adding, updating, bumping, and removal operations this time ;-).
2010-10-27 16:22:46 -04:00
Michał Górny
176fcaecef
Introduce array_append() function, in favor of inline assignments.
2010-10-02 19:17:46 +02:00
Nathan Phillip Brink
8e6c21f793
Subversion: Fix detection of package removal for overlays using plain Subversion.
2010-09-28 12:44:52 -04:00
Michał Górny
c8c9e803e7
Whitespace cleanup.
2010-09-26 10:38:59 +02:00
Nathan Phillip Brink
254df61bd8
Fix my previous two fixes. Now one can enter a category directory and use sunrise-commit to remove packages whose directories are marked as deleted. Successfully tested to work with a Mercurial repository, unlike my previous two commits ;-).
2010-09-23 19:07:44 -04:00
Nathan Phillip Brink
7810093bba
Fix my fix for relative paths during package removal so that one may remove multiple packages at a time.
2010-09-20 10:52:03 -04:00
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
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
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
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
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