SVN not working correctly...

View: New views
10 Messages — Rating Filter:   Alert me  

SVN not working correctly...

by Leo28C :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello everyone! :-D

Hey, I installed Cygwin with the following options:

Devel: Install
wget: (latest version)

Now I'm trying to update a program (for coding the PSP) through SVN. The tutorial I'm reading (http://www.psp-programming.com/tutorials/c/lesson01.htm) says to execute the command 'svn update', however that gives me some errors:

[quote]
user@comp ~/psptoolchain
$ svn update
svn: Can't parse '.svn/dir-prop-base'
svn: Malformed file
[/quote]

I asked on a PSP coding form and they suggested to reinstall, so I tried that. Nothing. Then I tried reinstalling all Cygwin. Nothing. Then I tried installing SVN from here:
http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91

But that didn't work either, same error... :-(

Anyone got a suggestion? Thanks! ;-)


PS: The dir-prop-base file is this:

[quote]
K 10
svn:ignore
V 80
binutils-*.tar.gz
newlib-*.tar.gz
gdb-*.tar.gz
gcc-*.tar.bz2
binutils-*.tar.gz


END
[/quote

Re: SVN not working correctly...

by René Berber-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Leo28C wrote:

> Hello everyone! :-D
>
> Hey, I installed Cygwin with the following options:
>
> Devel: Install
> wget: (latest version)
>
> Now I'm trying to update a program (for coding the PSP) through SVN. The
> tutorial I'm reading
> (http://www.psp-programming.com/tutorials/c/lesson01.htm) says to execute
> the command 'svn update', however that gives me some errors:
>
> [quote]
> user@comp ~/psptoolchain
> $ svn update
> svn: Can't parse '.svn/dir-prop-base'
> svn: Malformed file
> [/quote]

Probably a line ending problem, which is common with svn and svn-tools that try
to be smart and use CR-LF on Windows.

I assume you installed whatever you have under ~/psptoolchain from an image
(.zip or .tar.gz file), if that is the case the solution would be to get rid of
that and re-install using Cygwin's svn or leave it and use a GUI for svn (as it
will probably use those line endings by default, but can be configured in many
ways).

You can check if that is the problem by looking at the file with `od -c
.svn/dir-prop-base` or something else that will show the line endings, like `vi
-b ...`

> I asked on a PSP coding form and they suggested to reinstall, so I tried

Yep, reinstall, reboot, reboot, reboot, and see if that helps... ;-)  Don't you
love all those "experts" posting to user groups?

I may be wrong, by the way.

> that. Nothing. Then I tried reinstalling all Cygwin. Nothing. Then I tried
> installing SVN from here:
> http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91
>
> But that didn't work either, same error... :-(
>
> Anyone got a suggestion? Thanks! ;-)
>
>
> PS: The dir-prop-base file is this:
>
> [quote]
> K 10
> svn:ignore
> V 80
> binutils-*.tar.gz
> newlib-*.tar.gz
> gdb-*.tar.gz
> gcc-*.tar.bz2
> binutils-*.tar.gz
>
>
> END
> [/quote
--
René Berber


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Re: SVN not working correctly...

by Larry Hall (Cygwin) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 01/15/2007, René Berber wrote:
> Leo28C wrote:
> > I asked on a PSP coding form and they suggested to reinstall, so I tried
>
> Yep, reinstall, reboot, reboot, reboot, and see if that helps...  ;-)  
> Don't you
> love all those "experts" posting to user groups?
>
> I may be wrong, by the way.


That's OK.  If you are, you can always re-install and reboot a couple of
dozen times.  I'm sure that will make you right. ;-)


--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Re: SVN not working correctly...

by Leo28C :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

ARGH, Linux and anything to do with it makes me SO mad... >:(

How do I change the newlines? There's more than 100 files to change I believe, and it's hard to do with SciTE... :-/

I downloaded RapidSVN, but I have no idea how to use it... What the hell's a "repository"? I uninstalled Linux for a reason, damn it! :-@

HELP, I'm a Windows user! (ARGH)


René Berber-2 wrote:
Leo28C wrote:

> Hello everyone! :-D
>
> Hey, I installed Cygwin with the following options:
>
> Devel: Install
> wget: (latest version)
>
> Now I'm trying to update a program (for coding the PSP) through SVN. The
> tutorial I'm reading
> (http://www.psp-programming.com/tutorials/c/lesson01.htm) says to execute
> the command 'svn update', however that gives me some errors:
>
> [quote]
> user@comp ~/psptoolchain
> $ svn update
> svn: Can't parse '.svn/dir-prop-base'
> svn: Malformed file
> [/quote]

Probably a line ending problem, which is common with svn and svn-tools that try
to be smart and use CR-LF on Windows.

I assume you installed whatever you have under ~/psptoolchain from an image
(.zip or .tar.gz file), if that is the case the solution would be to get rid of
that and re-install using Cygwin's svn or leave it and use a GUI for svn (as it
will probably use those line endings by default, but can be configured in many
ways).

You can check if that is the problem by looking at the file with `od -c
.svn/dir-prop-base` or something else that will show the line endings, like `vi
-b ...`

> I asked on a PSP coding form and they suggested to reinstall, so I tried

Yep, reinstall, reboot, reboot, reboot, and see if that helps... ;-)  Don't you
love all those "experts" posting to user groups?

I may be wrong, by the way.

> that. Nothing. Then I tried reinstalling all Cygwin. Nothing. Then I tried
> installing SVN from here:
> http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91
>
> But that didn't work either, same error... :-(
>
> Anyone got a suggestion? Thanks! ;-)
>
>
> PS: The dir-prop-base file is this:
>
> [quote]
> K 10
> svn:ignore
> V 80
> binutils-*.tar.gz
> newlib-*.tar.gz
> gdb-*.tar.gz
> gcc-*.tar.bz2
> binutils-*.tar.gz
>
>
> END
> [/quote
--
René Berber


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Re: SVN not working correctly...

by Christopher Faylor-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Jan 15, 2007 at 07:09:08PM -0800, Leo28C wrote:
>ARGH, Linux and anything to do with it makes me SO mad... >:(

Then what in the world are you doing here?

Go away!

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Re: SVN not working correctly...

by René Berber-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Leo28C wrote:

> ARGH, Linux and anything to do with it makes me SO mad... >:(

What has Linux to do with the problem?

> How do I change the newlines? There's more than 100 files to change I
> believe, and it's hard to do with SciTE... :-/

You don't have to change anything.  SciTE is for Windows, so it probably works
fine with no changes; the original problem was using svn under Cygwin.

> I downloaded RapidSVN, but I have no idea how to use it... What the hell's a
> "repository"? I uninstalled Linux for a reason, damn it! :-@
>
> HELP, I'm a Windows user! (ARGH)

Remember I said "probably".  And first step was to find out if that was the problem.

Look at it another way, Cygwin's svn didn't work as expected when you tried,
somebody (me) told you that svn does funny things with line endings, so you have
to look for what is best for you.  You can become a svn expert and learn how to
move between environments or go the easy way and use a Windows tool for svn,
RapidSVN is one (I've never used it).
--
René Berber


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


RE: SVN not working correctly...

by Dave Korn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 16 January 2007 03:09, Leo28C wrote:

> ARGH, Linux and anything to do with it makes me SO mad... >:(
>
> How do I change the newlines? There's more than 100 files to change I
> believe, and it's hard to do with SciTE... :-/
>
> I downloaded RapidSVN, but I have no idea how to use it... What the hell's a
> "repository"? I uninstalled Linux for a reason, damn it! :-@
>
> HELP, I'm a Windows user! (ARGH)

  Tell us what you did, step by step, in particular:

How/where did you get the source code for the program?

If it was packed, how did you unpack it?

If you fetched it from a SVN server (a 'repository'), did you use command-line svn or a gui?

Have you mixed using command-line svn and a gui at all?

Is the text editor you're using capable of using unix line endings?  Does it have an option somewhere that lets you select?

  Basically, the problem has probably come from using a mixed set of tools, some cygwin, some windows-native, on the same svn working tree.  Hopefully the answers to those questions should show us where.


    cheers,
      DaveK
--
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Re: SVN not working correctly...

by Leo28C :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm here to get help on Cygwin because I'm forced to use it by this program that I need. >:-(

Now, this is what I did step by step...

1. Downloaded Cygwin from here: http://www.cygwin.com/setup.exe
2. Installed it with "devel" set to Install and "wget" set to the latest version.
3. Downloaded the program from here: http://ps2dev.org/psp/Tools/Toolchain/
4. Extracted it (using WinZip, with folder names) to "C:\cygwin\home\<user>\".
5. Opened up a Cygwin shell and navigated to ~/psptoolchain (the root folder inside the archive).
6. Typed in "svn update". I got those errors... :'(

I'm pretty sure the problem HAS to do with the line endings, because after I changed all the files from \r\n to just \n it worked well, but then there were more files complaining... There are endless folders, so I don't wanna go through all of them... :-/

I'd like to keep trying that, one of my first C++ apps was one that changed line endings, but guess what, I formatted and... wait, maybe I have it backed up... I'll see if I can find that and make it iterate through all the files. But tell me if there's anything wrong with the steps.

Thanks! ;-)

Christopher Faylor-8 wrote:
On Mon, Jan 15, 2007 at 07:09:08PM -0800, Leo28C wrote:
>ARGH, Linux and anything to do with it makes me SO mad... >:(

Then what in the world are you doing here?

Go away!

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Re: SVN not working correctly...

by David Rothenberger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 1/16/2007 12:40 PM, Leo28C wrote:
> Now, this is what I did step by step...
>
> 4. Extracted it (using WinZip, with folder names) to
> "C:\cygwin\home\<user>\".

Try using the "tar" program from Cygwin to extract instead. I downloaded
the file, extracted with tar, and did an "svn update" with no problems
at all. Maybe WinZip is "helping" you by doing some conversions to
Windows line endings...

--
David Rothenberger                spammer? -> spam@...
GPG/PGP: 0x92D68FD8, DB7C 5146 1AB0 483A 9D27 DFBA FBB9 E328 92D6 8FD8

Does a one-legged duck swim in a circle?


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Re: SVN not working correctly...

by Leo28C :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

....................
.......................
..........................
........................
...............
.....................

I cannot believe I fell for that. :-/
Thanks y'all! ;-)
* Hides *
David Rothenberger wrote:
On 1/16/2007 12:40 PM, Leo28C wrote:
> Now, this is what I did step by step...
>
> 4. Extracted it (using WinZip, with folder names) to
> "C:\cygwin\home\<user>\".

Try using the "tar" program from Cygwin to extract instead. I downloaded
the file, extracted with tar, and did an "svn update" with no problems
at all. Maybe WinZip is "helping" you by doing some conversions to
Windows line endings...

--
David Rothenberger                spammer? -> spam@daveroth.dyndns.org
GPG/PGP: 0x92D68FD8, DB7C 5146 1AB0 483A 9D27 DFBA FBB9 E328 92D6 8FD8

Does a one-legged duck swim in a circle?


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/