You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by scirocco paptimus <pa...@gmail.com> on 2007/09/11 12:12:52 UTC
cvs2svn on windows
Hello, everyone.
I would like to shift from CVS to Subversion on windows.
The change set by cvs2svn.py(2.0.0) is always LF. then, even if it
on windows, native eol-style becomes LF.
If the repository by svn.exe is done in 'svnadmin dump', it becomes
CR/LF.
It was not good only to convert the output of cvs2svn.py into CR/LF,
It was necessary to correct the size of 'Prop-content-length', and
more.
Isn't there solving this problem?
Though it is thought it is inconsiderate if it is always option
addition:
svn diff -x --ignore-eol-style xxx
If this can be solved, I think that I can shift to Subversion.
Thanx in advance.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: cvs2svn on windows
Posted by paptimusx scirocco <pa...@gmail.com>.
I CAN NOT.
--
Date: Wed, 12 Sep 2007 12:04:55 +0900
Subject: Re: cvs2svn on windows
---
I had misunderstood it. I was going to know svn:eol-style
option. I did not know that no default svn:eol-style=native.
therefore, I set it to svn:eol-style=CRLF.
I specified ps svn:eol-style=native, It seems to have
made it good.
I think that another option is suitable possibly.
(--auto-props=cvs2svn.config and --auto-props-ignore-case)
I will be able to ride on Subversion.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: cvs2svn on windows
Posted by paptimusx scirocco <pa...@gmail.com>.
again.
Date: Wed, 12 Sep 2007 12:04:55 +0900
Subject: Re: cvs2svn on windows
---
I had misunderstood it. I was going to know svn:eol-style
option. I did not know that no default svn:eol-style=native.
therefore, I set it to svn:eol-style=CRLF.
I specified ps svn:eol-style=native, It seems to have
made it good.
I think that another option is suitable possibly.
(--auto-props=cvs2svn.config and --auto-props-ignore-case)
I will be able to ride on Subversion.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: cvs2svn on windows
Posted by Karl Fogel <kf...@red-bean.com>.
"scirocco paptimus" <pa...@gmail.com> writes:
> has not been delivered to the recipient's BlackBerry Handheld.
> The returned error status is <DB_USER_SUSPENDED_MODE>
I know. I'm working on this; tracing the subscriber address is
complicated, but I think we've got it. (It's also on some Subversion
lists.)
-Karl
> ---------- forward ----------
> From: "scirocco paptimus" <pa...@gmail.com>
> To: users@subversion.tigris.org
> Date: Wed, 12 Sep 2007 12:03:00 +0900
> Subject: Re: cvs2svn on windows
> Thank you for the answer.
>
> I know eol-style option.
> (cvs2svn.py --default-eol=CRLF or svn:eol-style property)
>
> The problem is different.
> cvs2cl.py dumps the change set that always assumes LF. However, when
> I do svnadmin dump on Windows, the change set becomes CR/LF. both are
> different.
>
> Next, I edits a file and the check-in is done. then, It changes into
> CR/LF. you can recognize that the line terminator of the file under
> .svn is CR/LF too. (ex: .svn\text-base\readme.txt.svn-base)
>
> ---
> % python cvs2svn --default-eol=CRLF --dumpfile=070911.dump ./cvsroot.wk/src
>
> % svnadmin create repo
> % call cat 070911.dump | svnadmin load --parent-dir src.070911 repo
> % svn co repo wk
> % cd wk
> % vim readme.txt
> (one line was added to the head)
>
> % svn diff readme.txt
>
> then
>
> % svn diff -x --ignore-eol-style readme.txt
> => diffrence in one line
>
> % svn diff readme.txt
> => differnce in all lines
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: cvs2svn on windows
Posted by scirocco paptimus <pa...@gmail.com>.
has not been delivered to the recipient's BlackBerry Handheld.
The returned error status is <DB_USER_SUSPENDED_MODE>
---------- forward ----------
From: "scirocco paptimus" <pa...@gmail.com>
To: users@subversion.tigris.org
Date: Wed, 12 Sep 2007 12:03:00 +0900
Subject: Re: cvs2svn on windows
Thank you for the answer.
I know eol-style option.
(cvs2svn.py --default-eol=CRLF or svn:eol-style property)
The problem is different.
cvs2cl.py dumps the change set that always assumes LF. However, when
I do svnadmin dump on Windows, the change set becomes CR/LF. both are
different.
Next, I edits a file and the check-in is done. then, It changes into
CR/LF. you can recognize that the line terminator of the file under
.svn is CR/LF too. (ex: .svn\text-base\readme.txt.svn-base)
---
% python cvs2svn --default-eol=CRLF --dumpfile=070911.dump ./cvsroot.wk/src
% svnadmin create repo
% call cat 070911.dump | svnadmin load --parent-dir src.070911 repo
% svn co repo wk
% cd wk
% vim readme.txt
(one line was added to the head)
% svn diff readme.txt
then
% svn diff -x --ignore-eol-style readme.txt
=> diffrence in one line
% svn diff readme.txt
=> differnce in all lines
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: cvs2svn on windows
Posted by scirocco paptimus <pa...@gmail.com>.
Thank you for the answer.
I know eol-style option.
(cvs2svn.py --default-eol=CRLF or svn:eol-style property)
The problem is different.
cvs2cl.py dumps the change set that always assumes LF. However, when
I do svnadmin dump on Windows, the change set becomes CR/LF. both are
different.
Next, I edits a file and the check-in is done. then, It changes into
CR/LF. you can recognize that the line terminator of the file under
.svn is CR/LF too. (ex: .svn\text-base\readme.txt.svn-base)
---
% python cvs2svn --default-eol=CRLF --dumpfile=070911.dump ./cvsroot.wk/src
% svnadmin create repo
% call cat 070911.dump | svnadmin load --parent-dir src.070911 repo
% svn co repo wk
% cd wk
% vim readme.txt
(one line was added to the head)
% svn diff readme.txt
then
% svn diff -x --ignore-eol-style readme.txt
=> diffrence in one line
% svn diff readme.txt
=> differnce in all lines
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: cvs2svn on windows
Posted by scirocco paptimus <pa...@gmail.com>.
I had misunderstood it. I was going to know svn:eol-style
option. I did not know that no default svn:eol-style=native.
therefore, I set it to svn:eol-style=CRLF.
I specified ps svn:eol-style=native, It seems to have
made it good.
I think that another option is suitable possibly.
(--auto-props=cvs2svn.config and --auto-props-ignore-case)
I will be able to ride on Subversion.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: cvs2svn on windows
Posted by Michael Haggerty <mh...@alum.mit.edu>.
Questions about cvs2svn should generally be posted to
users@cvs2svn.tigris.org.
scirocco paptimus wrote:
> I would like to shift from CVS to Subversion on windows.
>
> The change set by cvs2svn.py(2.0.0) is always LF. then, even if it
> on windows, native eol-style becomes LF.
> If the repository by svn.exe is done in 'svnadmin dump', it becomes
> CR/LF.
> It was not good only to convert the output of cvs2svn.py into CR/LF,
> It was necessary to correct the size of 'Prop-content-length', and
> more.
>
> Isn't there solving this problem?
>
> Though it is thought it is inconsiderate if it is always option
> addition:
> svn diff -x --ignore-eol-style xxx
>
> If this can be solved, I think that I can shift to Subversion.
Did you read the cvs2svn FAQ [1] about dealing with line endings?
The correct answer depends on whether you have marked your files
correctly as text vs binary in CVS. If yes, then you can use
--default-style=native.
If not, then there are a whole bunch of cvs2svn options that you can use
to fix things up during the conversion.
Normally for text files, one prefers native line endings. This means
that when the file is checked out under Windows you get CRLF; when
checked out under linux you get LF. Files with svn:eol-style=native are
stored in the SVN repository using canonical line endings, namely LF,
and translated upon checkout.
Michael
[1] http://cvs2svn.tigris.org/faq.html#eol-fixup
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org