[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
new version of ".trunk + .origin" patch
From: |
Stephen Cameron |
Subject: |
new version of ".trunk + .origin" patch |
Date: |
Wed, 19 Sep 2001 14:57:29 -0700 (PDT) |
Hi,
For anybody using my ".trunk + .origin" patch,
( http://www.geocities.com/dotslashstar/branch_patch.html ):
I have a new version. I found a tiny problem if
you specify ".origin" by itself, (which is not allowed
anyway) it would add an invalid line into the val-tags
file.
If you do, for example:
cvs update -r .origin module
It will say you can't use ".origni" alone, but,
it will also put a bad line into the val-tags
file.
This patch to tag.c, below, (on top of the previous
complete patch) fixes that.
I also put up a new complete patch at the above
URL that includes this latest fix, and is made
relative to the current development version of
CVS.
I noticed this problem after updating to the
recent changes to myndbm.c, which made my problem
readily apparent, (at least I think that's why it
suddenly became apparent).
-- steve
--- tag.c.orig Wed Sep 19 15:41:48 2001
+++ tag.c Wed Sep 19 14:55:59 2001
@@ -1216,6 +1216,12 @@
/* than '.' */
*dot = '\0'; /* lop off the ".origin" */
+ if (strcmp(name, "") == 0) {
+ /* We don't want to add an empty tag into val-tags */
+ /* if ".origin" is specified alone. */
+ free(name);
+ return;
+ }
}
/* Special tags are always valid. */
__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- new version of ".trunk + .origin" patch,
Stephen Cameron <=