Skip to contentSkip to conversation

Collecting cvsps patches

DISCUSSION Yann Dirson 8 participants 21 messages Jun 15, 2016 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

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.

Signature · 4 lines
Yann Dirson    <[email protected]> |
Debian-related: <[email protected]> |   Support Debian GNU/Linux:
                                    |  Freedom, Power, Stability, Gratis
     http://ydirson.free.fr/        | Check <http://www.debian.org/>
#1 lore raw

Hi, Yann!

Quoted 3 lines · Yann Dirson

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.

Signature · 2 lines
Regards,
Pavel Roskin
#2 lore raw

Hi Pavel,

Quoted 3 lines · Pavel Roskin

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,

Signature · 4 lines
Yann Dirson    <[email protected]> |
Debian-related: <[email protected]> |   Support Debian GNU/Linux:
                                    |  Freedom, Power, Stability, Gratis
     http://ydirson.free.fr/        | Check <http://www.debian.org/>
#3 lore raw
Quoted 10 lines · Yann Dirson

Hi Pavel,

Quoted 3 lines · Pavel Roskin

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 :)

Quoted 8 lines

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

#4 lore raw

Hi David,

Quoted 2 lines · David Mansfield

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,

Signature · 4 lines
Yann Dirson    <[email protected]> |
Debian-related: <[email protected]> |   Support Debian GNU/Linux:
                                    |  Freedom, Power, Stability, Gratis
     http://ydirson.free.fr/        | Check <http://www.debian.org/>
#5 lore raw
Quoted 8 lines · Yann Dirson

Hi David,

Quoted 2 lines · David Mansfield

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.

Signature · 2 lines
Regards,
Pavel Roskin
#6 lore raw
In reply to Yann Dirson
Quoted 5 lines · Yann Dirson

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

#7 lore raw
Quoted 9 lines · Linus Torvalds
Quoted 5 lines · Yann Dirson

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 ?

Quoted 6 lines

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,

Signature · 4 lines
Yann Dirson    <[email protected]> |
Debian-related: <[email protected]> |   Support Debian GNU/Linux:
                                    |  Freedom, Power, Stability, Gratis
     http://ydirson.free.fr/        | Check <http://www.debian.org/>
#8 lore raw
In reply to Yann Dirson
Quoted 8 lines · Yann Dirson

Hi David,

Quoted 2 lines · David Mansfield

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.

Signature · 3 lines
Jakub Narebski
Warsaw, Poland
ShadeHawk on #irc
#9 lore raw

What's in cvsps.git

In reply to Yann Dirson

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.

Signature · 4 lines
Yann Dirson    <[email protected]> |
Debian-related: <[email protected]> |   Support Debian GNU/Linux:
                                    |  Freedom, Power, Stability, Gratis
     http://ydirson.free.fr/        | Check <http://www.debian.org/>
#11 lore raw
In reply to a message not in the archive
Quoted 5 lines · Martin Langhoff
Quoted 1 line · Yann Dirson

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,

Signature · 4 lines
Yann Dirson    <[email protected]> |
Debian-related: <[email protected]> |   Support Debian GNU/Linux:
                                    |  Freedom, Power, Stability, Gratis
     http://ydirson.free.fr/        | Check <http://www.debian.org/>
#12 lore raw

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

---
 cache.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
cache.c +1 -1
index 409392d..2b2179a 100644
@@ -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

#13 lore raw
Quoted 1 line · Alexander Litvinov

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?

Signature · 2 lines
Regards,
Pavel Roskin
#14 lore raw
Quoted 8 lines

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.

#15 lore raw
In reply to Pavel Roskin
Quoted 3 lines · Pavel Roskin

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,

Signature · 4 lines
Yann Dirson    <[email protected]> |
Debian-related: <[email protected]> |   Support Debian GNU/Linux:
                                    |  Freedom, Power, Stability, Gratis
     http://ydirson.free.fr/        | Check <http://www.debian.org/>
#16 lore raw
In reply to Alexander Litvinov
Quoted 1 line · Alexander Litvinov

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

Right, it was fixed already.

Best regards,

Signature · 4 lines
Yann Dirson    <[email protected]> |
Debian-related: <[email protected]> |   Support Debian GNU/Linux:
                                    |  Freedom, Power, Stability, Gratis
     http://ydirson.free.fr/        | Check <http://www.debian.org/>
#18 lore raw
Quoted 7 lines · Anand Kumria
Quoted 1 line · Yann Dirson

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,

Signature · 4 lines
Yann Dirson    <[email protected]> |
Debian-related: <[email protected]> |   Support Debian GNU/Linux:
                                    |  Freedom, Power, Stability, Gratis
     http://ydirson.free.fr/        | Check <http://www.debian.org/>
#19 lore raw
Quoted 5 lines · Yann Dirson
Quoted 4 lines · Anand Kumria
Quoted 1 line · Yann Dirson

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

Quoted 7 lines
Quoted 3 lines

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?

Signature · 3 lines
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
#20 lore raw
Quoted 9 lines · Jakub Narebski
Quoted 7 lines · Yann Dirson
Quoted 6 lines · Anand Kumria
Quoted 1 line · Yann Dirson

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

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

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

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.

#21 lore raw
In reply to Yann Dirson
Quoted 5 lines · Yann Dirson
Quoted 4 lines · Anand Kumria
Quoted 1 line · Yann Dirson

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

Quoted 7 lines
Quoted 3 lines

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.