RPM Community Forums

Mailing List Message of <rpm-devel>

Re: [CVS] RPM: rpm-5_0: rpm/ system.h

From: Dan Nicholson <dbn.lists@gmail.com>
Date: Thu 07 Feb 2008 - 20:57:24 CET
Message-ID: <91705d080802071157n1bb0c4adj1ccd62aad652534@mail.gmail.com>
On Feb 7, 2008 11:18 AM, Jeff Johnson <n3npq@mac.com> wrote:
> This occurred because I applied the patch as follows:
>
>       cd rpm50_checkouut
>       curl http://rpm5.org/cvs/chngview?cn=9423 | patch -p1
>
> Is there a better way to move patches around?

cvsps is great for representing CVS commits as patchsets instead of
whatever insanity is used in CVS.

http://www.cobite.com/cvsps/

I don't know if that will streamline your operation immediately, but
in the long run it's nice to have. Here's an example starting from
scratch:

$ cvs -d :pserver:anonymous@rpm5.org:/cvs co rpm
$ cd rpm
# find out about patchsets on system.h; -q suppress warnings (there's
quite a few in rpm :)
$ cvsps -q -f system.h
(This runs for a few minutes the first time as it caches the history
of the repo in ~/.cvsps. After that, cvsps runs should be pretty
quick. You may want to redirect output to a file.)
# found the patchset, it's 9312; specify it with -s, generate the diff with -g
$ cvsps -q -g -s 9312 > qnx-includes.patch

Later, you can add the "-u" argument to your searches so the cache is
updated. Otherwise, you're working directly from the cache and it's
pretty quick.

The alternative would be to use a better scm, but I'm sure that's not
an answer you're looking for :)

--
Dan
Received on Thu Feb 7 20:57:28 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.