Mailinglist Archive: opensuse-buildservice (266 mails)

< Previous Next >
[opensuse-buildservice] [ANNOUNCE] new osc plugin: prdiff for comparing projects
  • From: Adam Spiers <aspiers@xxxxxxxx>
  • Date: Wed, 16 Jan 2013 16:02:29 +0000
  • Message-id: <20130116160229.GG32557@pacific.linksys.moosehall>
Hi all,

I wanted a way to quickly compare a project with its "upstream"
project, and a quick hack ended up as a new osc plugin:

https://gist.github.com/616b476a9c592a0a2a89

(Copy to your ~/.osc-plugins or /var/lib/osc-plugins to try it.)

Example usages:

$ osc prdiff --include=client openSUSE:Factory Cloud:OpenStack:Factory
differs: python-glanceclient
identical: python-keystoneclient
differs: python-novaclient
differs: python-quantumclient
identical: python-swiftclient

$ osc prdiff --new-only --exclude='crowbar|rubygem' \
systemsmanagement:chef:10:staging \
systemsmanagement:crowbar:2.0
identical: couchdb
identical: erlang
identical: gecode
identical: js
differs: rabbitmq-server
new only: all-barclamps-good
new only: fakechroot
new only: libyaml
new only: ruby
new only: ruby-common
new only: ruby19
new only: sleshammer

$ cd ~/OBS/home/aspiers/branches/devel/languages/ruby/
$ osc prdiff --diffstat --requests
differs: ruby-common

generate_buildrequires.sh | 31 ++++++++++++++++++++++++++-----
ruby-common.changes | 8 ++++++++
2 files changed, 34 insertions(+), 5 deletions(-)


148023 State:new By:aspiers When:2013-01-11T11:04:14
submit:
home:aspiers:branches:devel:languages:ruby/ruby-common -> devel:languages:ruby
Descr: - Fix it to work even if all-good has just been created locally
via mkpac and doesn't exist server-side yet. - Improve support
for running within a branch of the original project. This
allows submitreqs which change all-good.spec.

Feedback welcome. I'd also like to know if it makes sense to include
this in osc core (my vote is yes, but I'm biased ;-)

Cheers,
Adam
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >