(New) sunrise-commit -- a commit helper script for Gentoo devs
Hello,
For quite a long time, Sunrise overlay users were using
sunrise-commit script to commit their ebuilds to Sunrise. That
script can still be found in app-portage/overlay-utils [1] but it is
pretty old and limited, and not really useful outside Sunrise.
Some time ago I started working on an improved, fresh re-implementation
of sunrise-commit [2]. Although the script originally was still quite
limited, right now it is able to handle committing to various overlays
and the gx86 tree as well, and that's why I'd like to commit the ebuild
into gx86 eventually.
But before doing so (and thus encouraging Sunrise users to replace
their old scripts with the new one), I'd like to ask more devs
for a review. Right now, a working ebuild installing the script
and the manpage can be found in the 'mgorny' overlay [3].
Now, for the long description, the new sunrise-commit is a general
Gentoo repository commit helper. It is a wrapper around echangelog,
repoman and VCS-es. It's main features are:
- support for CVS, svn, git and hg repos (including explicit support
for git-svn),
- ChangeLog auto-reverts -- you can abort the commit, change the commit
message and sunrise-commit will adjust the ChangeLog without trouble,
- bug reference checking -- if s-c finds something looking like a bug
number in your commit message, it will try to grab its summary line,
- (simple) package removal scenario -- mostly for Sunrise or other
custom repos, don't think it's appropriate for CVS.
That's all what I can think of now. I'm open to suggestions and feature
requests, and I'd be happy to improve sunrise-commit to meet Gentoo
developer needs.
(New) sunrise-commit -- a commit helper script for Gentoo devs
On Thu, Jan 6, 2011 at 4:15 PM, Michał Górny wrote:
> That's all what I can think of now. I'm open to suggestions and feature
> requests, and I'd be happy to improve sunrise-commit to meet Gentoo
> developer needs.
stable bug filing
this is the hack i use:
submit_bug_stable() {
local msg="doit"
if [[ $1 == "-m" ]] ; then
msg=$2
shift 2
fi
if [[ -z $1 ]] || [[ -n $2 ]] ; then
echo "Usage: submit_bug_stable <ebuilds>"
return 1
fi
local maintainer=$(xml sel -t -v pkgmetadata/herd metadata.xml)
if [[ ${maintainer} == "no-herd" ]] ; then
maintainer=$(xml sel -t -v pkgmetadata/maintainer/email metadata.xml)
elif [[ -n ${maintainer} ]] ; then
maintainer="${maintainer}@gentoo.org"
fi
if [[ -z ${maintainer} ]] ; then
echo "No maintainer found in metadata.xml"
return 1
fi
local cat=$(basename $(dirname $(pwd)))
local pkg=${1%.ebuild}
local ebuild=${pkg}.ebuild
local cc=$(arch_emails ${ebuild} | sed -r -e 's[^ ]*-[^
]*|mips)@[^ ]*::g')
if [[ -z ${cc} ]] ; then
echo "Unable to read ebuild '${ebuild}'"
return 1
fi
bugz post
--batch
-u vapier@gentoo.org
-t "Stabilize ${cat}/${pkg}"
-d "${msg}"
-a "${maintainer}"
--cc="${cc}"
-k STABLEREQ
--product='Gentoo Linux'
--component=Ebuilds
--priority=P2
--severity=enhancement
}
-mike
01-07-2011, 10:24 AM
Michał Górny
(New) sunrise-commit -- a commit helper script for Gentoo devs
On Thu, 6 Jan 2011 16:28:29 -0500
Mike Frysinger <vapier@gentoo.org> wrote:
> On Thu, Jan 6, 2011 at 4:15 PM, Michał Górny wrote:
> > That's all what I can think of now. I'm open to suggestions and
> > feature requests, and I'd be happy to improve sunrise-commit to
> > meet Gentoo developer needs.
>
> stable bug filing
Why don't you request that in, say, eix?
--
Best regards,
Michał Górny
01-07-2011, 10:43 AM
justin
(New) sunrise-commit -- a commit helper script for Gentoo devs
> local cc=$(arch_emails ${ebuild} | sed -r -e 's[^ ]*-[^
Hi Mike,
could you please post the arch_emails function?
thanks justin
01-07-2011, 04:57 PM
Mike Frysinger
(New) sunrise-commit -- a commit helper script for Gentoo devs
On Friday, January 07, 2011 06:24:33 Michał Górny wrote:
> On Thu, 6 Jan 2011 16:28:29 -0500 Mike Frysinger wrote:
> > On Thu, Jan 6, 2011 at 4:15 PM, Michał Górny wrote:
> > > That's all what I can think of now. I'm open to suggestions and
> > > feature requests, and I'd be happy to improve sunrise-commit to
> > > meet Gentoo developer needs.
> >
> > stable bug filing
>
> Why don't you request that in, say, eix?
ive never used eix, so i dont know what it does. you asked for suggestions
and i gave you one.
-mike
01-07-2011, 05:13 PM
Mike Frysinger
(New) sunrise-commit -- a commit helper script for Gentoo devs
On Friday, January 07, 2011 06:43:30 justin wrote:
> > local cc=$(arch_emails ${ebuild} | sed -r -e 's[^ ]*-[^
>
> could you please post the arch_emails function?
arch_emails() {
local ret
if [[ $@ == *.ebuild* ]] ; then
local e keys
for e in "$@" ; do
keys=$(sed -n '/^[[:space:]]*KEYWORD/{s:.*=::;s:"::g;p}' ${e})
for a in ${keys} ; do
[[ ${a} != ~* ]] && continue
ret="${ret} ${a}"
done
done
else
ret="$*"
fi
printf '%s@gentoo.org ' ${ret//~}
echo
}
-mike
01-07-2011, 06:28 PM
Michał Górny
(New) sunrise-commit -- a commit helper script for Gentoo devs
On Fri, 7 Jan 2011 12:57:07 -0500
Mike Frysinger <vapier@gentoo.org> wrote:
> On Friday, January 07, 2011 06:24:33 Michał Górny wrote:
> > On Thu, 6 Jan 2011 16:28:29 -0500 Mike Frysinger wrote:
> > > On Thu, Jan 6, 2011 at 4:15 PM, Michał Górny wrote:
> > > > That's all what I can think of now. I'm open to suggestions and
> > > > feature requests, and I'd be happy to improve sunrise-commit to
> > > > meet Gentoo developer needs.
> > >
> > > stable bug filing
> >
> > Why don't you request that in, say, eix?
>
> ive never used eix, so i dont know what it does. you asked for
> suggestions and i gave you one.
I asked for suggestions relevant to the particular topic the utility is
operating in. You gave one which is not related to VCS-es,
committing nor any other topic sunrise-commit operates in.
--
Best regards,
Michał Górny
01-07-2011, 08:41 PM
Mike Frysinger
(New) sunrise-commit -- a commit helper script for Gentoo devs
On Friday, January 07, 2011 14:28:55 Michał Górny wrote:
> On Fri, 7 Jan 2011 12:57:07 -0500 Mike Frysinger wrote:
> > On Friday, January 07, 2011 06:24:33 Michał Górny wrote:
> > > On Thu, 6 Jan 2011 16:28:29 -0500 Mike Frysinger wrote:
> > > > On Thu, Jan 6, 2011 at 4:15 PM, Michał Górny wrote:
> > > > > That's all what I can think of now. I'm open to suggestions and
> > > > > feature requests, and I'd be happy to improve sunrise-commit to
> > > > > meet Gentoo developer needs.
> > > >
> > > > stable bug filing
> > >
> > > Why don't you request that in, say, eix?
> >
> > ive never used eix, so i dont know what it does. you asked for
> > suggestions and i gave you one.
>
> I asked for suggestions relevant to the particular topic the utility is
> operating in. You gave one which is not related to VCS-es,
> committing nor any other topic sunrise-commit operates in.
no, you're talking about a utility that helps people manage ebuilds and you
specifically mentioned making it less bound to sunrise (and overlays). in
fact, you explicitly mentioned making it work with ebuilds in "gx86".
-mike