[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [Patch] cvs2svn.py

From: Swen Thuemmler <swen_at_mediaways.net>
Date: 2002-07-20 17:03:06 CEST

On Fri, Jul 19, 2002 at 08:57:03PM +0200, Sander Striker wrote:

> Ok, Swen, what are you seeing that you needed this patch?

Well, I'm seeing missing log messages. You can verify this easily:

1. create a new repository:
   cvs -d /var/tmp/cvs init
2. create empty directory and import it:
   mkdir /var/tmp/svntest
   cd /var/tmp/svntest
   cvs -d /var/tmp/cvs import cvstest vendortag releasetag
3. check out the created directory
   cd /var/tmp
   cvs -d /var/tmp/cvs co cvstest
4. add some files
   cd cvstest
   cp /dev/null foo
   cp /dev/null bar
   cp /dev/null baz
   cvs add foo bar baz
5. commit the files with different messages
   cvs commit -m 'added foo' foo
   cvs commit -m 'added bar' bar
   cvs commit -m 'added baz' baz
6. convert the cvs repository
   cd /path/to/cvs2svn.py
   ./cvs2svn.py -v -s /var/tmp/svn/ /var/tmp/cvs/cvstest
7. checkout the new subversion repository
   cd /var/tmp
   svn co file:///var/tmp/svn svntest

8. check log messages
   cd /var/tmp/svntest
   svn log

Without my patch, only one message is there (but all three files):
rev 1: swen | 2002-07-20 15:55:24 +0200 (Sat, 20 Jul 2002) | 2 lines

added foo


With my patch, all three messages are there:
rev 1: swen | 2002-07-20 15:55:24 +0200 (Sat, 20 Jul 2002) | 7 lines

A baz (1.1):
  added baz
A foo (1.1):
  added foo
A bar (1.1):
  added bar


So clearly messages are lost. Btw, I think it is common for CVS users to provide
different log messages when checking in different files, even when the changes
together are one change set logically. I do this myself sometimes, when I have
a $Log$ entry in my source files and do not want unrelated log messages from other
files get in there (or on huge log message). So often one logical changeset has
different log messages...

Hope this helps,


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Jul 20 17:18:08 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.