# Collecting cvsps patches

21 messages from 2006-06-11 to 2006-06-17. Participants: Yann Dirson, Anand Kumria, Pavel Roskin, David Mansfield, Linus Torvalds, Jakub Narebski, Alexander Litvinov, Junio C Hamano.
Thread: https://gitlist.dev/t/4466

## Yann Dirson, 2006-06-11 12:27

Subject: Collecting cvsps patches
Message-ID: <20060611122746.GB7766@nowhere.earth>
URL: https://gitlist.dev/e/20060611122746.GB7766%40nowhere.earth

```
Since there are has been some work done here and there on cvsps, but
upstream does not seem to have time to issue a new release, I have
started to collect the patches I found.

I guess this is a good place for a heads-up: if you know of any other
bugfixes or feature patches to cvsps, I'd like to hear about it, so I
can add it to my repo.

Not that the master branch is an octopus merge of all works in there,
including my preliminary work on multiple-tag support, so for now you
may want to do your own mix.

For now it has:

* bugfixes and such:

Anand Kumria:
      FreeBSD isn't evil - just misguided

Linus Torvalds:
      Increase log-length limit to 64kB
      Improve handling of file collisions in the same patchset
      Fix branch ancestor calculation

Yann Dirson:
      Cleanup the tag handling to simplify multi-tag handling
      Dependency handling

* features

Yann Dirson:
      Allow to have multiple tags on a single patchset.

-- 
Yann Dirson    <ydirson@altern.org> |
Debian-related: <dirson@debian.org> |   Support Debian GNU/Linux:
                                    |  Freedom, Power, Stability, Gratis
     http://ydirson.free.fr/        | Check <http://www.debian.org/>

```

## Yann Dirson, 2006-06-11 22:42

Subject: Re: Collecting cvsps patches
Message-ID: <20060611224205.GF1297@nowhere.earth>
URL: https://gitlist.dev/e/20060611224205.GF1297%40nowhere.earth
In-Reply-To: <46a038f90606111516v2c8c68e2v818a0a0f9dca2da6@mail.gmail.com>

```
On Mon, Jun 12, 2006 at 10:16:55AM +1200, Martin Langhoff wrote:
> On 6/12/06, Yann Dirson <ydirson@altern.org> wrote:
> >For now it has:
> 
> I want it. Where's the repo?
> I assume you haven't included the url on purpose ;)

Rather, I have carefully hidden it in a previous post with an
unrelated Subject line:)

http://ydirson.free.fr/soft/git/cvsps.git

Best regards,
-- 
Yann Dirson    <ydirson@altern.org> |
Debian-related: <dirson@debian.org> |   Support Debian GNU/Linux:
                                    |  Freedom, Power, Stability, Gratis
     http://ydirson.free.fr/        | Check <http://www.debian.org/>

```

## Anand Kumria, 2006-06-12 11:27

Subject: Re: Collecting cvsps patches
Message-ID: <e6jj39$6ua$1@sea.gmane.org>
URL: https://gitlist.dev/e/e6jj39%246ua%241%40sea.gmane.org
In-Reply-To: <20060611224205.GF1297@nowhere.earth>

```
On Mon, 12 Jun 2006 00:42:05 +0200, Yann Dirson wrote:

> http://ydirson.free.fr/soft/git/cvsps.git

I think you need to chmod +x hooks/post-update

and then run 'git-update-server-info'.

Cheers,
Anand

```

## Pavel Roskin, 2006-06-13 04:35

Subject: Re: Collecting cvsps patches
Message-ID: <1150173310.15831.6.camel@dv>
URL: https://gitlist.dev/e/1150173310.15831.6.camel%40dv
In-Reply-To: <20060611122746.GB7766@nowhere.earth>

```
Hi, Yann!

On Sun, 2006-06-11 at 14:27 +0200, Yann Dirson wrote: 
> Since there are has been some work done here and there on cvsps, but
> upstream does not seem to have time to issue a new release, I have
> started to collect the patches I found.

That's great news.  Thank you!  I'm sending four patches - two compile
fixes for recent regressions and two patches fixing DNS resolution on
64-bit systems - one on Linux and the other on other OSes.

-- 
Regards,
Pavel Roskin

```

## Yann Dirson, 2006-06-13 09:54

Subject: Re: Collecting cvsps patches
Message-ID: <20060613095445.GM1297@nowhere.earth>
URL: https://gitlist.dev/e/20060613095445.GM1297%40nowhere.earth
In-Reply-To: <1150173310.15831.6.camel@dv>

```
Hi Pavel,

On Tue, Jun 13, 2006 at 12:35:10AM -0400, Pavel Roskin wrote:
> I'm sending four patches - two compile
> fixes for recent regressions and two patches fixing DNS resolution on
> 64-bit systems - one on Linux and the other on other OSes.

Thanks, applied the two latter fixes, and folded the compile fix into
the patch it should have been part of :)

For the dependency stuff, I added the -Y flag to hte makedepend
invocation.  This produces many warnings, but at least does the job
right.

I'll push the whole once I have finished a little work on another
branch.

Please excuse any delays due to the recent birth of our 3rd son ;)

Best regards,
-- 
Yann Dirson    <ydirson@altern.org> |
Debian-related: <dirson@debian.org> |   Support Debian GNU/Linux:
                                    |  Freedom, Power, Stability, Gratis
     http://ydirson.free.fr/        | Check <http://www.debian.org/>

```

## David Mansfield, 2006-06-13 13:46

Subject: Re: Collecting cvsps patches
Message-ID: <448EC1C6.5060902@dm.cobite.com>
URL: https://gitlist.dev/e/448EC1C6.5060902%40dm.cobite.com
In-Reply-To: <20060613095445.GM1297@nowhere.earth>

```


Yann Dirson wrote:
> Hi Pavel,
> 
> On Tue, Jun 13, 2006 at 12:35:10AM -0400, Pavel Roskin wrote:
>> I'm sending four patches - two compile
>> fixes for recent regressions and two patches fixing DNS resolution on
>> 64-bit systems - one on Linux and the other on other OSes.
> 
> Thanks, applied the two latter fixes, and folded the compile fix into
> the patch it should have been part of :)
> 
> For the dependency stuff, I added the -Y flag to hte makedepend
> invocation.  This produces many warnings, but at least does the job
> right.
> 
> I'll push the whole once I have finished a little work on another
> branch.
> 
> Please excuse any delays due to the recent birth of our 3rd son ;)

Congratulations.  I'm really glad someone has taken some time to collect 
these patches.  I feel really bad about 'abandoning' (for now only, I 
hope) the project.

At the very least, I should put some mention in the web page, is there 
some text you want me to put up there, and/or a like?

David

```

## Yann Dirson, 2006-06-13 15:15

Subject: Re: Collecting cvsps patches
Message-ID: <20060613151504.GN1297@nowhere.earth>
URL: https://gitlist.dev/e/20060613151504.GN1297%40nowhere.earth
In-Reply-To: <448EC1C6.5060902@dm.cobite.com>

```
Hi David,

On Tue, Jun 13, 2006 at 09:46:46AM -0400, David Mansfield wrote:
> At the very least, I should put some mention in the web page, is there 
> some text you want me to put up there, and/or a like?

I have setup a Q&D page at
http://ydirson.free.fr/en/software/scm/cvsps.html to link to.

I'll expand it later with more information.

Best regards,
-- 
Yann Dirson    <ydirson@altern.org> |
Debian-related: <dirson@debian.org> |   Support Debian GNU/Linux:
                                    |  Freedom, Power, Stability, Gratis
     http://ydirson.free.fr/        | Check <http://www.debian.org/>

```

## Pavel Roskin, 2006-06-13 15:39

Subject: Re: Collecting cvsps patches
Message-ID: <1150213187.18913.19.camel@dv>
URL: https://gitlist.dev/e/1150213187.18913.19.camel%40dv
In-Reply-To: <20060613151504.GN1297@nowhere.earth>

```
On Tue, 2006-06-13 at 17:15 +0200, Yann Dirson wrote:
> Hi David,
> 
> On Tue, Jun 13, 2006 at 09:46:46AM -0400, David Mansfield wrote:
> > At the very least, I should put some mention in the web page, is there 
> > some text you want me to put up there, and/or a like?
> 
> I have setup a Q&D page at
> http://ydirson.free.fr/en/software/scm/cvsps.html to link to.

Thank you!  By the way, CVSps is capitalized as CVSps, not CvsPs.

It would be great to install the gitweb interface so that the patches
could be viewed online.

-- 
Regards,
Pavel Roskin

```

## Linus Torvalds, 2006-06-13 15:47

Subject: Re: Collecting cvsps patches
Message-ID: <Pine.LNX.4.64.0606130841200.5498@g5.osdl.org>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0606130841200.5498%40g5.osdl.org
In-Reply-To: <20060613151504.GN1297@nowhere.earth>

```


On Tue, 13 Jun 2006, Yann Dirson wrote:
> 
> I have setup a Q&D page at
> http://ydirson.free.fr/en/software/scm/cvsps.html to link to.
> 
> I'll expand it later with more information.

Will you be able to set up gitweb on that site, perhaps? 

Also, I guess that patch I posted in the "cvsps wierdness" thread (yeah, 
yeah, bad spelling, but it wasn't me who started the thread) should 
probably be added, since it fixed at least one test-case.

Although it should probably get more testing with a bigger and more 
real-life repository..

(David: in case you didn't follow the git list, it makes 
"compare_patch_sets_by_time()" compare by members _first_, and by time 
_second_, so that if a file revision shows that a patchset was before 
another one, it will use that as the primary sort order).

			Linus

```

## Jakub Narebski, 2006-06-13 16:52

Subject: Re: Collecting cvsps patches
Message-ID: <e6mqga$dnb$1@sea.gmane.org>
URL: https://gitlist.dev/e/e6mqga%24dnb%241%40sea.gmane.org
In-Reply-To: <20060613151504.GN1297@nowhere.earth>

```
Yann Dirson wrote:

> Hi David,
> 
> On Tue, Jun 13, 2006 at 09:46:46AM -0400, David Mansfield wrote:
>> At the very least, I should put some mention in the web page, is there 
>> some text you want me to put up there, and/or a like?
> 
> I have setup a Q&D page at
> http://ydirson.free.fr/en/software/scm/cvsps.html to link to.

I have added above link to GitWiki, at InterfacesFrontendsAndTools, 
and at GitLinks.

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #irc

```

## Alexander Litvinov, 2006-06-15 02:21

Subject: Re: Collecting cvsps patches
Message-ID: <200606150921.34690.lan@academsoft.ru>
URL: https://gitlist.dev/e/200606150921.34690.lan%40academsoft.ru
In-Reply-To: <20060611224205.GF1297@nowhere.earth>

```
Your master branch is not compilable. This is the fix for it.

---
 cache.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cache.c b/cache.c
index 409392d..2b2179a 100644
--- a/cache.c
+++ b/cache.c
@@ -501,7 +501,7 @@ static void dump_patch_set(FILE * fp, Pa
        struct list_head * tag;
        for (tag = ps->tags.next; tag != &ps->tags; tag = tag->next)
        {
-            TagName* tagname = list_entry (tag, TagName, tagnames);
+            TagName* tagname = list_entry (tag, TagName, name);

            fprintf(fp, " %s %d%s", tagname->name, tagname->flags,
                    (tag->next == &ps->tags) ? "" : ",");
--
1.4.0

```

## Pavel Roskin, 2006-06-15 03:08

Subject: Re: Collecting cvsps patches
Message-ID: <1150340912.24184.7.camel@dv>
URL: https://gitlist.dev/e/1150340912.24184.7.camel%40dv
In-Reply-To: <200606150921.34690.lan@academsoft.ru>

```
On Thu, 2006-06-15 at 09:21 +0700, Alexander Litvinov wrote:
> Your master branch is not compilable. This is the fix for it.

Actually, revision 5ecebc5064df0fd578dbf4b5ba5255e9af8cda7a renamed
"tagnames" to "link" in cvsps_types.h, so I think the same should be
done in cache.c.

Also, you can check the definition of list_entry, you'll see that the
member (argument 3) is cast to the pointer to the requested type
(argument 2).  I don't think it's safe to cast name to a pointer to
TagName.

That said, having non-compilable repository defeats the purpose of
collecting the patches to cvsps.  Shouldn't only compilable patches be
allowed in the repository?

-- 
Regards,
Pavel Roskin

```

## Alexander Litvinov, 2006-06-15 03:14

Subject: Re: Collecting cvsps patches
Message-ID: <200606151014.31716.lan@academsoft.ru>
URL: https://gitlist.dev/e/200606151014.31716.lan%40academsoft.ru
In-Reply-To: <1150340912.24184.7.camel@dv>

```
> Actually, revision 5ecebc5064df0fd578dbf4b5ba5255e9af8cda7a renamed
> "tagnames" to "link" in cvsps_types.h, so I think the same should be
> done in cache.c.
>
> Also, you can check the definition of list_entry, you'll see that the
> member (argument 3) is cast to the pointer to the requested type
> (argument 2).  I don't think it's safe to cast name to a pointer to
> TagName.

You are right. My patch is wrong. I have tried to import real cvs repo and 
cvsps broke with sigsegv.

```

## Yann Dirson, 2006-06-15 07:35

Subject: Re: Collecting cvsps patches
Message-ID: <20060615073550.GH7766@nowhere.earth>
URL: https://gitlist.dev/e/20060615073550.GH7766%40nowhere.earth
In-Reply-To: <200606150921.34690.lan@academsoft.ru>

```
On Thu, Jun 15, 2006 at 09:21:34AM +0700, Alexander Litvinov wrote:
> Your master branch is not compilable. This is the fix for it.

Right, it was fixed already.

Best regards,
-- 
Yann Dirson    <ydirson@altern.org> |
Debian-related: <dirson@debian.org> |   Support Debian GNU/Linux:
                                    |  Freedom, Power, Stability, Gratis
     http://ydirson.free.fr/        | Check <http://www.debian.org/>

```

## Yann Dirson, 2006-06-15 16:25

Subject: Re: Collecting cvsps patches
Message-ID: <20060615162541.GI7766@nowhere.earth>
URL: https://gitlist.dev/e/20060615162541.GI7766%40nowhere.earth
In-Reply-To: <1150340912.24184.7.camel@dv>

```
On Wed, Jun 14, 2006 at 11:08:32PM -0400, Pavel Roskin wrote:
> That said, having non-compilable repository defeats the purpose of
> collecting the patches to cvsps.  Shouldn't only compilable patches be
> allowed in the repository?

Right, it is entirely my fault, I guess I got distracted at that time.

I have change the layout of the repo to avoid such mishappenings in
the future.  The master branch holds the fixes, and new features or
intrusive fixes go into their own branches (especially since none of
them are complete yet).

Fixes that may need further thought are in the to-check branch.

Best regards,
-- 
Yann Dirson    <ydirson@altern.org> |
Debian-related: <dirson@debian.org> |   Support Debian GNU/Linux:
                                    |  Freedom, Power, Stability, Gratis
     http://ydirson.free.fr/        | Check <http://www.debian.org/>

```

## Yann Dirson, 2006-06-16 21:23

Subject: Re: Collecting cvsps patches
Message-ID: <20060616212334.GN7766@nowhere.earth>
URL: https://gitlist.dev/e/20060616212334.GN7766%40nowhere.earth
In-Reply-To: <e6jj39$6ua$1@sea.gmane.org>

```
On Mon, Jun 12, 2006 at 11:27:37AM +0000, Anand Kumria wrote:
> On Mon, 12 Jun 2006 00:42:05 +0200, Yann Dirson wrote:
> 
> > http://ydirson.free.fr/soft/git/cvsps.git
> 
> I think you need to chmod +x hooks/post-update
> 
> and then run 'git-update-server-info'.

Unfortunately, I only have FTP access to push to this site, so I have
to run git-update-server-info myself, and occasionally forget.  I'll
have to bring up-to-date my old cg-ftppush script some day :)

Best regards,
-- 
Yann Dirson    <ydirson@altern.org> |
Debian-related: <dirson@debian.org> |   Support Debian GNU/Linux:
                                    |  Freedom, Power, Stability, Gratis
     http://ydirson.free.fr/        | Check <http://www.debian.org/>

```

## Jakub Narebski, 2006-06-16 21:31

Subject: Re: Collecting cvsps patches
Message-ID: <e6v7vr$ila$1@sea.gmane.org>
URL: https://gitlist.dev/e/e6v7vr%24ila%241%40sea.gmane.org
In-Reply-To: <20060616212334.GN7766@nowhere.earth>

```
Yann Dirson wrote:

> On Mon, Jun 12, 2006 at 11:27:37AM +0000, Anand Kumria wrote:
>> On Mon, 12 Jun 2006 00:42:05 +0200, Yann Dirson wrote:
>> 
>> > http://ydirson.free.fr/soft/git/cvsps.git
>> 
>> I think you need to chmod +x hooks/post-update
>> 
>> and then run 'git-update-server-info'.
> 
> Unfortunately, I only have FTP access to push to this site, so I have
> to run git-update-server-info myself, and occasionally forget.  I'll
> have to bring up-to-date my old cg-ftppush script some day :)

Or extend git to allow push/pull also via ftp?

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git

```

## Yann Dirson, 2006-06-16 21:34

Subject: Re: Collecting cvsps patches
Message-ID: <20060616213442.GO7766@nowhere.earth>
URL: https://gitlist.dev/e/20060616213442.GO7766%40nowhere.earth
In-Reply-To: <Pine.LNX.4.64.0606130841200.5498@g5.osdl.org>

```
On Tue, Jun 13, 2006 at 08:47:15AM -0700, Linus Torvalds wrote:
> 
> On Tue, 13 Jun 2006, Yann Dirson wrote:
> > 
> > I have setup a Q&D page at
> > http://ydirson.free.fr/en/software/scm/cvsps.html to link to.
> > 
> > I'll expand it later with more information.
> 
> Will you be able to set up gitweb on that site, perhaps? 

No, CGI's on this hosting platform are restricted to ISP-provided
ones.

Do you think it would be adequate to have this repo hosted on
kernel.org ?


> Also, I guess that patch I posted in the "cvsps wierdness" thread (yeah, 
> yeah, bad spelling, but it wasn't me who started the thread) should 
> probably be added, since it fixed at least one test-case.
> 
> Although it should probably get more testing with a bigger and more 
> real-life repository..

Added, in the to-check branch.  At least the idea is sound.

Anyway, there are quite a number of hairy repos out there, which
appear to cause problem to cvsps.  I'll see if I can identify more
problems precisely - I have already collected a handful of them to
http://bugs.debian.org/cvsps.

Best regards,
-- 
Yann Dirson    <ydirson@altern.org> |
Debian-related: <dirson@debian.org> |   Support Debian GNU/Linux:
                                    |  Freedom, Power, Stability, Gratis
     http://ydirson.free.fr/        | Check <http://www.debian.org/>

```

## Yann Dirson, 2006-06-16 21:44

Subject: What's in cvsps.git
Message-ID: <20060616214458.GP7766@nowhere.earth>
URL: https://gitlist.dev/e/20060616214458.GP7766%40nowhere.earth
In-Reply-To: <20060611122746.GB7766@nowhere.earth>

```

I have now added all patches gathered from here, as well as those in
the current Debian package.  Still have to dig other distros.

Note the log-length limit increment is being superceded by a dynamic
allocation patch.

Repo URL:  http://ydirson.free.fr/soft/git/cvsps.git

==============================

	* master has:

Alexander Litvinov:
      Handle cvs repo with modules

Anand Kumria:
      FreeBSD isn't evil - just misguided

David D. Kilzer:
      cvsps: should ignore TRUNK branch if it exists in log
      Dynamically allocate the log buffer to prevent warning messages

Linus Torvalds:
      Increase log-length limit to 64kB
      Improve handling of file collisions in the same patchset
      Fix branch ancestor calculation

Pavel Roskin:
      Use __linux__ conditional, not LINUX.
      Use INADDR_NONE instead of -1 to check inet_addr() result

Roberto C. Sanchez:
      Diff opts typo fix.

Yann Dirson:
      Call cvs with -q flag when fetching the log
      Dependency handling


	* to-check additionally has:

Linus Torvalds:
      Make time ordering less important than revision ordering


	* dev branches still have incomplete stuff, so I don't list it
	here.

-- 
Yann Dirson    <ydirson@altern.org> |
Debian-related: <dirson@debian.org> |   Support Debian GNU/Linux:
                                    |  Freedom, Power, Stability, Gratis
     http://ydirson.free.fr/        | Check <http://www.debian.org/>

```

## Junio C Hamano, 2006-06-16 23:22

Subject: Re: Collecting cvsps patches
Message-ID: <7vslm4bs8w.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vslm4bs8w.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <e6v7vr$ila$1@sea.gmane.org>

```
Jakub Narebski <jnareb@gmail.com> writes:

> Yann Dirson wrote:
>
>> On Mon, Jun 12, 2006 at 11:27:37AM +0000, Anand Kumria wrote:
>>> On Mon, 12 Jun 2006 00:42:05 +0200, Yann Dirson wrote:
>>> 
>>> > http://ydirson.free.fr/soft/git/cvsps.git
>>> 
>>> I think you need to chmod +x hooks/post-update
>>> 
>>> and then run 'git-update-server-info'.
>> 
>> Unfortunately, I only have FTP access to push to this site, so I have
>> to run git-update-server-info myself, and occasionally forget.  I'll
>> have to bring up-to-date my old cg-ftppush script some day :)
>
> Or extend git to allow push/pull also via ftp?

Patches welcome.

```

## Junio C Hamano, 2006-06-17 05:50

Subject: Re: Collecting cvsps patches
Message-ID: <7v4pykbaa9.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7v4pykbaa9.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <20060616212334.GN7766@nowhere.earth>

```
Yann Dirson <ydirson@altern.org> writes:

> On Mon, Jun 12, 2006 at 11:27:37AM +0000, Anand Kumria wrote:
>> On Mon, 12 Jun 2006 00:42:05 +0200, Yann Dirson wrote:
>> 
>> > http://ydirson.free.fr/soft/git/cvsps.git
>> 
>> I think you need to chmod +x hooks/post-update
>> 
>> and then run 'git-update-server-info'.
>
> Unfortunately, I only have FTP access to push to this site, so I have
> to run git-update-server-info myself, and occasionally forget.  I'll
> have to bring up-to-date my old cg-ftppush script some day :)

When I only had "serving HTTP, published via FTP" ISP accounts,
I essentially ended up having a bare repository on my local
machine, update it with real git-push (with the post-update hook
there), and copied that to the ISP via lftp batch.

```
