Mailinglist Archive: opensuse-buildservice (349 mails)
| < Previous | Next > |
[opensuse-buildservice] Re: Novell ID's for OSC Plugins
- From: Adrian Schröter <adrian@xxxxxxx>
- Date: Thu, 29 Nov 2007 13:33:47 +0100
- Message-id: <200711291333.47324.adrian@xxxxxxx>
On Thursday 29 November 2007 13:24:12 wrote Dr. Peter Poeml:
...
sure, but this is not really intuitive to use ;)
Esp. not when you use this more often. cvs has a rdiff command what similar to
this functionality, doing the diff on the server side.
osc diff is just for a checked out package, right ?
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>]
hm, maybe even default to "--project openSUSE:Factory" if no argument is
given ...
--
Adrian Schroeter
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
email: adrian@xxxxxxx
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx
...
On Thu, Nov 29, 2007 at 01:12:33PM +0100, Adrian Schröter wrote:
Regarding the current status of the diff functionality, what you asked
for, from https://api.opensuse.org/apidocs
POST /source/<project>/<package>?cmd=diff
Arguments:
project - Project name
package - Package name
Create a source diff
rev: revision of new package, optional oproject: old project, optional
opackage: old package, optional orev: old revision, optional
Result: diff as text/plain
So you can do this via the api:
curl -X POST -H "Content-Length: 0" -0 -n \
"https://api.opensuse.org/source/openSUSE:Tools/build?cmd=diff&oproject=o
penSUSE:Factory"
An osc equivalent of this command would be
osc req -m POST
"/source/openSUSE:Tools/build?cmd=diff&oproject=openSUSE:Factory"
sure, but this is not really intuitive to use ;)
Esp. not when you use this more often. cvs has a rdiff command what similar to
this functionality, doing the diff on the server side.
to diff the new "build" package in openSUSE:Tools project against the
version in openSUSE:Factory .
osc has IMHO not yet a nice interface for this (something like cvs
rdiff). Right Peter ?
bye
adrian
osc has no support for requesting a diff between *two* arbitrary
packages. So far, "osc diff" can create diffs of different revisions of
*one* package.
It should be possible to implement an osc subcommand for this with a few
lines.
To integrate the functionality into the existing osc diff subcommand
might be a little more work (it needs some consideration to come up with
a sane user interface).
osc diff is just for a checked out package, right ?
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>]
hm, maybe even default to "--project openSUSE:Factory" if no argument is
given ...
--
Adrian Schroeter
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
email: adrian@xxxxxxx
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx
| < Previous | Next > |