Mailinglist Archive: opensuse-buildservice (349 mails)

< Previous Next >
Re: [opensuse-buildservice] osc rdiff (was Re: Novell ID's for OSC Plugins)
  • From: "Dr. Peter Poeml" <poeml@xxxxxxx>
  • Date: Thu, 29 Nov 2007 17:52:24 +0100
  • Message-id: <20071129165224.GY30003@xxxxxxx>
On Thu, Nov 29, 2007 at 05:39:21PM +0100, Adrian Schröter wrote:
On Thursday 29 November 2007 17:21:43 wrote Dr. Peter Poeml:
On Thu, Nov 29, 2007 at 01:33:47PM +0100, Adrian Schröter wrote:

...

an equivalent for cvs rdiff would work without any checked out sources,
just

osc rdiff <TO_PROJECT> <TO_PACKAGE> [--package <FROM_PACKAGE>]
[--project <FROM_PROJECT>]

It'd also need options for revision and orevision.

How about

osc rdiff [-rN[:M]] [[--oldprj OLD_PROJECT] --oldpkg OLD_PACKAGE]]
NEW_PROJECT NEW_PACKAGE

looks even better to me :)

One should note that the result is a "pretty diff", which goes into tar
balls and is handy for reviews -- not a normal diff which yields an
appliable patch.

hm, maybe even default to "--project openSUSE:Factory" if no argument is
given ...

Maybe a good idea...

While experimenting, I noticed that
https://api.opensuse.org/source/home:poeml/initviocons?cmd=diff&oproject=home%3Apoeml&opackage=initviocons
returns a non-empty diff, even though package=opackage and
project=oproject.

Is this a diff to the last revision? It looks like that.

Peter
--
"WARNING: This bug is visible to non-employees. Please be respectful!"

SUSE LINUX Products GmbH
Research & Development
< Previous Next >
Follow Ups