cvsps:cvsps.git
9 years agocvs_direct -> cvsclient. All regression tests pass.
Eric S. Raymond [Thu, 27 Dec 2012 16:50:35 +0000 (11:50 -0500)]
cvs_direct -> cvsclient.  All regression tests pass.

9 years agoImplemented a revision-map option in cvsps.
Eric S. Raymond [Thu, 27 Dec 2012 16:42:34 +0000 (11:42 -0500)]
Implemented a revision-map option in cvsps.

9 years agoFix a misnamed option.
Eric S. Raymond [Thu, 27 Dec 2012 16:29:54 +0000 (11:29 -0500)]
Fix a misnamed option.

9 years agoImplement -R.
Eric S. Raymond [Thu, 27 Dec 2012 16:29:05 +0000 (11:29 -0500)]
Implement -R.

9 years agoImplementation of -r, -u, and -s in git-cvsimport.
Eric S. Raymond [Thu, 27 Dec 2012 16:04:50 +0000 (11:04 -0500)]
Implementation of -r, -u, and -s in git-cvsimport.

9 years agoMinor cleanups in convert_date
Dan McGee [Thu, 27 Dec 2012 08:11:17 +0000 (02:11 -0600)]
Minor cleanups in convert_date

Don't needlessly initialize variables to 0 if we are never going to read
them before writing, and use standard spacing and indentation styles in
the code itself.

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
9 years agoImprove variable scoping and fix a file pointer leak
Dan McGee [Thu, 27 Dec 2012 08:11:16 +0000 (02:11 -0600)]
Improve variable scoping and fix a file pointer leak

All of these were noted by `make cppcheck`.

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
9 years agoUse '%u' in stats.c output of unsigned counters
Dan McGee [Thu, 27 Dec 2012 08:11:15 +0000 (02:11 -0600)]
Use '%u' in stats.c output of unsigned counters

Rather than the signed '%d' format string that was here everywhere.
Fixes several cppcheck emitted warnings.

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
9 years agoUpdate the to-do list.
Eric S. Raymond [Thu, 27 Dec 2012 06:52:11 +0000 (01:52 -0500)]
Update the to-do list.

9 years agoAdd the t9602 test. It's not behaving quite as expected.
Eric S. Raymond [Thu, 27 Dec 2012 06:39:44 +0000 (01:39 -0500)]
Add the t9602 test.  It's not behaving quite as expected.

9 years agoA buffer-overflow-prevention patch from Red Hat. Regression tessts pass.
Eric S. Raymond [Thu, 27 Dec 2012 05:16:12 +0000 (00:16 -0500)]
A buffer-overflow-prevention patch from Red Hat.  Regression tessts pass.

9 years agoPunctuation fix.
Eric S. Raymond [Wed, 26 Dec 2012 21:36:08 +0000 (16:36 -0500)]
Punctuation fix.

9 years agocvsps now warns about the t9601 case.
Eric S. Raymond [Wed, 26 Dec 2012 21:17:34 +0000 (16:17 -0500)]
cvsps now warns about the t9601 case.

9 years agoCarry forward information about which branches are vendor branches.
Eric S. Raymond [Wed, 26 Dec 2012 20:16:21 +0000 (15:16 -0500)]
Carry forward information about which branches are vendor branches.

9 years agoTest machinery improvements.
Eric S. Raymond [Wed, 26 Dec 2012 18:39:40 +0000 (13:39 -0500)]
Test machinery improvements.

9 years agoIncorporate the t9601 test into the regular test routine.
Eric S. Raymond [Wed, 26 Dec 2012 17:42:57 +0000 (12:42 -0500)]
Incorporate the t9601 test into the regular test routine.

9 years agoDowngrade a warning.
Eric S. Raymond [Wed, 26 Dec 2012 17:40:21 +0000 (12:40 -0500)]
Downgrade a warning.

9 years agoAdd expect_different test method.
Eric S. Raymond [Wed, 26 Dec 2012 17:36:44 +0000 (12:36 -0500)]
Add expect_different test method.

9 years agoSuppress a pointless warning.
Eric S. Raymond [Wed, 26 Dec 2012 17:16:34 +0000 (12:16 -0500)]
Suppress a pointless warning.

9 years agoMake it possible to pass verbose into the convert method.
Eric S. Raymond [Wed, 26 Dec 2012 15:46:30 +0000 (10:46 -0500)]
Make it possible to pass verbose into the convert method.

9 years agoBe more explicit about unnamded branches.
Eric S. Raymond [Wed, 26 Dec 2012 15:11:25 +0000 (10:11 -0500)]
Be more explicit about unnamded branches.

9 years agoSigh, Python doesn't have timezone lookup in the standard libraries.
Eric S. Raymond [Wed, 26 Dec 2012 13:12:13 +0000 (08:12 -0500)]
Sigh, Python doesn't have timezone lookup in the standard libraries.

9 years agoWe parse timezone information from the authormap, but don't yet use it.
Eric S. Raymond [Wed, 26 Dec 2012 04:59:33 +0000 (23:59 -0500)]
We parse timezone information from the authormap, but don't yet use it.

9 years agoImplement -S in the replacement git-cvsimport.
Eric S. Raymond [Tue, 25 Dec 2012 21:29:11 +0000 (16:29 -0500)]
Implement -S in the replacement git-cvsimport.

9 years agoAdd the -n option to negate filters.
Eric S. Raymond [Tue, 25 Dec 2012 21:24:52 +0000 (16:24 -0500)]
Add the -n option to negate filters.

9 years agoRefactoring step.
Eric S. Raymond [Tue, 25 Dec 2012 21:18:12 +0000 (16:18 -0500)]
Refactoring step.

9 years agoMake the documentation match the code.
Eric S. Raymond [Tue, 25 Dec 2012 21:07:54 +0000 (16:07 -0500)]
Make the documentation match the code.

9 years agoWe can replicate the git tree's t9601 test.
Eric S. Raymond [Tue, 25 Dec 2012 20:50:50 +0000 (15:50 -0500)]
We can replicate the git tree's t9601 test.

9 years agoAdd a conversion method to the test machinery.
Eric S. Raymond [Tue, 25 Dec 2012 20:22:11 +0000 (15:22 -0500)]
Add a conversion method to the test machinery.

9 years agoMake cvsps emit 'done'.
Eric S. Raymond [Tue, 25 Dec 2012 19:09:56 +0000 (14:09 -0500)]
Make cvsps emit 'done'.

9 years agoRefactor cvstest.py for re-use. The regression test passes.
Eric S. Raymond [Tue, 25 Dec 2012 18:37:52 +0000 (13:37 -0500)]
Refactor cvstest.py for re-use.  The regression test passes.

9 years agoNow we can run from a module directory.
Eric S. Raymond [Tue, 25 Dec 2012 15:06:53 +0000 (10:06 -0500)]
Now we can run from a module directory.

9 years agoBe consistent about the case of the name.
Eric S. Raymond [Tue, 25 Dec 2012 14:32:11 +0000 (09:32 -0500)]
Be consistent about the case of the name.

9 years agoWe can now run cvsp from a repository directory.
Eric S. Raymond [Tue, 25 Dec 2012 14:28:54 +0000 (09:28 -0500)]
We can now run cvsp from a repository directory.

9 years agoRefactor in preparation for a feature addition.
Eric S. Raymond [Tue, 25 Dec 2012 13:55:55 +0000 (08:55 -0500)]
Refactor in preparation for a feature addition.

9 years agoDocument what's not implemented.
Eric S. Raymond [Tue, 25 Dec 2012 13:10:24 +0000 (08:10 -0500)]
Document what's not implemented.

9 years agoTurns out we have to replace got-cvsimport.
Eric S. Raymond [Tue, 25 Dec 2012 12:13:58 +0000 (07:13 -0500)]
Turns out we have to replace got-cvsimport.

9 years agoHandle incremental import better.
Eric S. Raymond [Tue, 25 Dec 2012 04:29:21 +0000 (23:29 -0500)]
Handle incremental import better.

9 years agoDevelop a better git-cvsimport script to wrap around cvsps.
Eric S. Raymond [Tue, 25 Dec 2012 04:15:37 +0000 (23:15 -0500)]
Develop a better git-cvsimport script to wrap around cvsps.

9 years agoAdd a distinguishing prefix to bug messages.
Eric S. Raymond [Tue, 25 Dec 2012 03:44:51 +0000 (22:44 -0500)]
Add a distinguishing prefix to bug messages.

9 years agoSupport for authorname mapping.
Eric S. Raymond [Mon, 24 Dec 2012 21:54:35 +0000 (16:54 -0500)]
Support for authorname mapping.

9 years agoVersion bump for 3.2 release. 3.2
Eric S. Raymond [Mon, 24 Dec 2012 20:12:40 +0000 (15:12 -0500)]
Version bump for 3.2 release.

9 years agoBe more informative to git users.
Eric S. Raymond [Mon, 24 Dec 2012 19:23:43 +0000 (14:23 -0500)]
Be more informative to git users.

9 years agoOut with -A, in with -V.
Eric S. Raymond [Mon, 24 Dec 2012 19:08:50 +0000 (14:08 -0500)]
Out with -A, in with -V.

9 years agoAdd a -V-for-version option.
Eric S. Raymond [Mon, 24 Dec 2012 19:07:03 +0000 (14:07 -0500)]
Add a -V-for-version option.

9 years agoThe -A option goes away.
Eric S. Raymond [Mon, 24 Dec 2012 19:00:39 +0000 (14:00 -0500)]
The -A option goes away.

9 years agoSuppress CVS keyword expansion in files fetched for --fast-export.
Eric S. Raymond [Mon, 24 Dec 2012 18:46:08 +0000 (13:46 -0500)]
Suppress CVS keyword expansion in files fetched for --fast-export.

9 years agoNote some good news.
Eric S. Raymond [Mon, 24 Dec 2012 18:41:14 +0000 (13:41 -0500)]
Note some good news.

9 years agoImproved support for multiple tags per revision.
Eric S. Raymond [Mon, 24 Dec 2012 13:44:46 +0000 (08:44 -0500)]
Improved support for multiple tags per revision.

Partly based on Yann Dirson's multitag patch, and backing out my implementation
which didn't interact properly with the funk-factor code.  This version also
supports fast-export mode.

9 years agoDynamically allocate the log buffer to prevent warning messages
David D. Kilzer [Sun, 19 Jun 2005 23:04:34 +0000 (01:04 +0200)]
Dynamically allocate the log buffer to prevent warning messages

On anoncvs.opensource.apple.com (Apple's anonymous CVS server for
WebKit), some very long log entries were included in CVS.  I got tired
of cvsps-2.1 truncating them, so I made the 'logbuff' buffer be
dynamically allocated.

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
9 years agoHandle cvs repo with modules
Alexander Litvinov [Thu, 15 Jun 2006 10:49:17 +0000 (12:49 +0200)]
Handle cvs repo with modules

Parse 'Working file' lines from cvs log output. This allows the tool
to work with cvs repos with modules.

This patch was made to import such repo into git. But git-cvsimport
can't load such data.

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
9 years agoFix parsing of pserver URL in open_ctx_pserver()
Johan Herland [Fri, 11 May 2007 15:59:37 +0000 (17:59 +0200)]
Fix parsing of pserver URL in open_ctx_pserver()

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
9 years agoRemove a remnant of the cache code.
Eric S. Raymond [Mon, 24 Dec 2012 03:07:29 +0000 (22:07 -0500)]
Remove a remnant of the cache code.

9 years agoCleanup the tag handling to simplify multi-tag handling
Yann Dirson [Tue, 11 Apr 2006 09:28:08 +0000 (11:28 +0200)]
Cleanup the tag handling to simplify multi-tag handling

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
9 years agocvsps: should ignore TRUNK branch if it exists in log
David D. Kilzer [Sun, 19 Jun 2005 22:57:56 +0000 (00:57 +0200)]
cvsps: should ignore TRUNK branch if it exists in log

On anoncvs.opensource.apple.com (where access to the now-open-source
WebKit is provided), some files have a branch named "TRUNK" with a
revision of "1".  Yes, I know that's not supposed to be possible, but
they guys at Apple found a way to do it.  Apparently, using "TRUNK"
works in places that "HEAD" does not for some cvs commands.

The current version (2.1) will die when it hits the "TRUNK: 1"
branch/revision.  The attached patch will ignore any branch or tag named
"TRUNK".

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
9 years agohandle running cvsps in root of checkout
Andy Isaacson [Tue, 18 Sep 2007 19:20:48 +0000 (12:20 -0700)]
handle running cvsps in root of checkout

I'm dealing with a CVS repo that looks like this:

% ls
CVSROOT/  Makefile,v  foo/  quux/

(along with a few dozen other subdirectories).  CVSROOT/modules has

project -a \
Makefile foo quux

etc.  So I check out with "cvs -d /path/to/cvs co project", and the
result is:

% head CVS/R*
==> CVS/Repository <==
.

==> CVS/Root <==
/path/to/cvs

When I run cvsps in the resulting checkout, it blows up all over the
place with thousands of error messages like:

% cvsps -u
cvs rlog: Logging .
WARNING: file /path/to/cvs/Makefile doesn't match strip_path /path/to/cvs/./. ignoring

The following patch seems to resolve this problem.

-andy

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
9 years agoDo not ignore subdirectories on CVSNT servers
Michal Sojka [Sun, 30 Mar 2008 01:24:19 +0000 (03:24 +0200)]
Do not ignore subdirectories on CVSNT servers

With my CVSNT server (1.11.1.3  (Build 57j), CVSPS ignored files in
subdirectories. The reason was that in output of cvs rlog, files were
separated from repository path by / whereas directories by \:

RCS file: d:\cvs\laser/BUILD.INC,v
...
RCS file: d:\cvs\laser\DLG/DABOUT.DLG,v

Now, if filename does not start with repository path, another comparison
is done to check whether the only difference is the last slash or
backslash.

Signed-off-by: Michal Sojka <sojkam1@fel.cvut.cz>
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
9 years agoGet rid of useless "branch_add already set" warnings
Yann Dirson [Tue, 27 Jun 2006 17:57:57 +0000 (19:57 +0200)]
Get rid of useless "branch_add already set" warnings

This was some testing code added by David, which was kept by error

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
9 years agoSince we no longer use local commands, we no longer test local capabilities.
Eric S. Raymond [Mon, 24 Dec 2012 02:24:44 +0000 (21:24 -0500)]
Since we no longer use local commands, we no longer test local capabilities.

9 years agoSeparate CPPFLAGS from CFLAGS
Yann Dirson [Fri, 16 Jun 2006 22:03:41 +0000 (00:03 +0200)]
Separate CPPFLAGS from CFLAGS

This allows to set CGLAGS on command-line without interfering with
preprocessor options

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
9 years agoAdd support for a tags file to the build system.
Timothy Allen [Sat, 19 May 2007 10:17:34 +0000 (20:17 +1000)]
Add support for a tags file to the build system.

 - tags built with 'make tags'
 - tags removed with 'make clean'
 - tags ignored by git

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
9 years agoDependency handling (cherry picked from 2e3fed14f81ff18fc115f123c331f986908f1c3f...
Yann Dirson [Tue, 11 Apr 2006 12:06:27 +0000 (14:06 +0200)]
Dependency handling (cherry picked from 2e3fed14f81ff18fc115f123c331f986908f1c3f commit)

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
9 years agoUse INADDR_NONE instead of -1 to check inet_addr() result
Pavel Roskin [Tue, 13 Jun 2006 04:32:33 +0000 (00:32 -0400)]
Use INADDR_NONE instead of -1 to check inet_addr() result

INADDR_NONE is not equal to -1 on 64-bit systems.

Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
9 years agoUse __linux__ conditional, not LINUX.
Pavel Roskin [Tue, 13 Jun 2006 04:32:31 +0000 (00:32 -0400)]
Use __linux__ conditional, not LINUX.

__linux__ is defined automatically, LINUX is not.

Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
9 years agoFix branch ancestor calculation
Linus Torvalds [Sat, 10 Jun 2006 20:59:39 +0000 (22:59 +0200)]
Fix branch ancestor calculation

Not having any ancestor at all means that any valid ancestor (even of
"depth 0") is fine.

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
9 years agoImprove handling of file collisions in the same patchset
Linus Torvalds [Sat, 10 Jun 2006 20:58:54 +0000 (22:58 +0200)]
Improve handling of file collisions in the same patchset

Take the file revision into account.

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
9 years agoIncrease log-length limit to 64kB
Linus Torvalds [Sat, 10 Jun 2006 20:58:05 +0000 (22:58 +0200)]
Increase log-length limit to 64kB

Yeah, it should be dynamic. I'm lazy.

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
9 years agoUse offsetof() for better portability.
Eric S. Raymond [Sun, 23 Dec 2012 23:26:30 +0000 (18:26 -0500)]
Use offsetof() for better portability.

Patch originally from Eric Hopper.

9 years agoThe page in the site directory was obsolete.
Eric S. Raymond [Sun, 23 Dec 2012 23:11:53 +0000 (18:11 -0500)]
The page in the site directory was obsolete.

9 years agoThis is certainly not being kept in RCS any more.
Eric S. Raymond [Sun, 23 Dec 2012 23:09:52 +0000 (18:09 -0500)]
This is certainly not being kept in RCS any more.

9 years agoIgnore some intermedias in the test machinery.
Eric S. Raymond [Sun, 23 Dec 2012 22:07:51 +0000 (17:07 -0500)]
Ignore some intermedias in the test machinery.

9 years agoBring the option summary up to date.
Eric S. Raymond [Sun, 23 Dec 2012 22:06:38 +0000 (17:06 -0500)]
Bring the option summary up to date.

9 years agoQuietness is now the default, as it should be.
Eric S. Raymond [Sun, 23 Dec 2012 21:57:15 +0000 (16:57 -0500)]
Quietness is now the default, as it should be.

9 years agoAdd usage examples.
Eric S. Raymond [Sun, 23 Dec 2012 21:29:48 +0000 (16:29 -0500)]
Add usage examples.

9 years agoAdd a utility production.
Eric S. Raymond [Sun, 23 Dec 2012 21:14:54 +0000 (16:14 -0500)]
Add a utility production.

9 years agoSpeed up regression testing a lot.
Eric S. Raymond [Sun, 23 Dec 2012 20:56:20 +0000 (15:56 -0500)]
Speed up regression testing a lot.

9 years agoAdd a deprecation warning.
Eric S. Raymond [Sun, 23 Dec 2012 17:16:52 +0000 (12:16 -0500)]
Add a deprecation warning.

9 years agoThis bug report is obsolete, since we don't use local CVS any more.
Eric S. Raymond [Sun, 23 Dec 2012 17:10:37 +0000 (12:10 -0500)]
This bug report is obsolete, since we don't use local CVS any more.

9 years agoAdd timestamp caveats to the mnual page.
Eric S. Raymond [Sun, 23 Dec 2012 17:09:18 +0000 (12:09 -0500)]
Add timestamp caveats to the mnual page.

9 years agoDocumentation fixes.
Eric S. Raymond [Sun, 23 Dec 2012 16:52:18 +0000 (11:52 -0500)]
Documentation fixes.

9 years agoWarn when a repository does not have commitids.
Eric S. Raymond [Sun, 23 Dec 2012 16:41:33 +0000 (11:41 -0500)]
Warn when a repository does not have commitids.

9 years agoRemove the --norc option, since we no longer use local CVS commands.
Eric S. Raymond [Sun, 23 Dec 2012 15:53:01 +0000 (10:53 -0500)]
Remove the --norc option, since we no longer use local CVS commands.

9 years agoDiscard -u to maintain compatibility with git-cvsimport.
Eric S. Raymond [Sun, 23 Dec 2012 15:48:50 +0000 (10:48 -0500)]
Discard -u to maintain compatibility with git-cvsimport.

9 years agoCaching is gone and it's all cvs_direct mode now.
Eric S. Raymond [Sun, 23 Dec 2012 15:43:25 +0000 (10:43 -0500)]
Caching is gone and it's all cvs_direct mode now.

9 years agoEliminate all use of local commands.
Eric S. Raymond [Sun, 23 Dec 2012 15:42:07 +0000 (10:42 -0500)]
Eliminate all use of local commands.

9 years agoAlwats use rlog when your CVS can do that.
Eric S. Raymond [Sun, 23 Dec 2012 14:02:25 +0000 (09:02 -0500)]
Alwats use rlog when your CVS can do that.

9 years agoAlways use what was cvs-direct mode in preference to running local commands.
Eric S. Raymond [Sun, 23 Dec 2012 13:39:00 +0000 (08:39 -0500)]
Always use what was cvs-direct mode in preference to running local commands.

It works, it's faster, there have been no bug reports on it since 2006,
and it lets us get rid of some nasty qualifications about how diffs work.
Much more code removal may be possible; this just gets rid of the cvs_direct
option, it doesn't abolish all code on paths where the cvs_direct_context is
NULL.

The regression test passes.

9 years agoDocumentation update.
Eric S. Raymond [Sun, 23 Dec 2012 13:15:01 +0000 (08:15 -0500)]
Documentation update.

9 years agoMore boolification.
Eric S. Raymond [Sun, 23 Dec 2012 12:48:50 +0000 (07:48 -0500)]
More boolification.

9 years agoComment fixes.
Eric S. Raymond [Sun, 23 Dec 2012 07:03:15 +0000 (02:03 -0500)]
Comment fixes.

9 years agoCoverity cleanup.
Eric S. Raymond [Sun, 23 Dec 2012 06:53:45 +0000 (01:53 -0500)]
Coverity cleanup.

9 years agoBetter idea: always *update* the cache on fast-export.
Eric S. Raymond [Sun, 23 Dec 2012 02:30:29 +0000 (21:30 -0500)]
Better idea: always *update* the cache on fast-export.

9 years agoRemove unnecessary option.
Eric S. Raymond [Sun, 23 Dec 2012 02:18:33 +0000 (21:18 -0500)]
Remove unnecessary option.

9 years agoAlways ignore cache when --fast-export is on.
Eric S. Raymond [Sun, 23 Dec 2012 02:17:11 +0000 (21:17 -0500)]
Always ignore cache when --fast-export is on.

9 years agoCode cleanup - use bool type where appropriate.
Eric S. Raymond [Sun, 23 Dec 2012 02:14:28 +0000 (21:14 -0500)]
Code cleanup - use bool type where appropriate.

9 years agoSuppress useless messages in direct mode.
Eric S. Raymond [Sun, 23 Dec 2012 01:38:05 +0000 (20:38 -0500)]
Suppress useless messages in direct mode.

9 years agocvs-direct use of rupdate work, but we get unwanted headers on stderr.
Eric S. Raymond [Sun, 23 Dec 2012 01:09:55 +0000 (20:09 -0500)]
cvs-direct use of rupdate work, but we get unwanted headers on stderr.

9 years agoRefactor to make cvs_rupdate() available for getting file contents.
Eric S. Raymond [Sat, 22 Dec 2012 22:52:26 +0000 (17:52 -0500)]
Refactor to make cvs_rupdate() available for getting file contents.

9 years agoMove the manual page master to asciidoc so we can aslso make HTML.
Eric S. Raymond [Sat, 22 Dec 2012 22:25:54 +0000 (17:25 -0500)]
Move the manual page master to asciidoc so we can aslso make HTML.

9 years agoVersion bump for 3.1 release. 3.1
Eric S. Raymond [Sat, 22 Dec 2012 21:32:31 +0000 (16:32 -0500)]
Version bump for 3.1 release.