Page 1 of 1

Cannot commit to SVN for my project?

Posted: Fri May 04, 2007 10:49 pm
by dynedain
I have a new project on joomlacode (just opened yesterday) and every time I try to add a file through SVN using Tortoise, I get Error: Put of '/svn/projectunixname/!svn/wrk/random-hash-string/filename': 501 Method Not Implemented (http://joomlacode.org)

Re: Cannot commit to SVN for my project?

Posted: Sat May 05, 2007 8:00 pm
by RobInk
Hi Can you check this topic, see if it helps? > http://forum.joomla.org/index.php/topic ... #msg734511

Re: Cannot commit to SVN for my project?

Posted: Mon May 07, 2007 3:56 pm
by dynedain
No, unfortuneately it doesn't help. I am doing the commit process correctly. I can update my local copy, no problem (there's no files yet to check out of course). And the commit process works and prompts me for my username/pass; after supplying them though I get the error

Here's the log:
Adding: Desktop\J-AMFPHP zzzzz\j-amfphp.xml
<-- At this point I'm prompted for my login info -->
Sending content: Desktop\J-AMFPHP zzzzz\j-amfphp.xml 
Error: Commit failed (details follow): 
Error: PUT of '/svn/jamfphp/!svn/wrk/a467faba-9217-fd4b-9aaf-6db2554eba6c/j-amfphp.xml': 501 Method Not Implemented (http://joomlacode.org

Re: Cannot commit to SVN for my project?

Posted: Mon May 07, 2007 9:54 pm
by dynedain
I have tested this using another SVN client, the one included as part of the "EasyEclipse for PHP" package.

I get a very similar error when trying to create a new folder in the SVN:

org.tigris.subversion.javahl.ClientException: RA layer request failed
svn: MKCOL of
'/svn/jamfphp/!svn/wrk/86474d7d-acf2-c8479458-f9b355a48cb7/J-AMFPHP%20v0.1': 501 Method Not Implemented (http://joomlacode.org)



Clearly something is wrong with the SVN setup for my new, empty project and I would appreciate any help I could get in resolving this.

Re: Cannot commit to SVN for my project?

Posted: Tue May 08, 2007 5:25 am
by RobInk
Can you check http://forum.joomla.org/index.php/topic,161874.0.html

This user had the exact same problem e.g. error you seem to have.

Re: Cannot commit to SVN for my project?

Posted: Tue May 08, 2007 3:46 pm
by dynedain
No, it's not helping.

Those are the exact steps I've been going through (except that I'm using tortoise on Windows, not a command line SVN on *NIX). I even started over from scratch to follow step by step. I'm still getting the error as soon as I attempt to commit a file or folder to the empty SVN.

Re: Cannot commit to SVN for my project?

Posted: Tue May 08, 2007 4:07 pm
by dynedain
Let me run through my steps to make clear I'm doing the right thing.

I requested a new project on JoomlaCode, it was approved: J-AMFPHP with the 'unix name' JAMFPHP

I created a new folder on my desktop for the project.

Right click -> SVN Checkout -> http://joomlacode.org/svn/jamfphp&nbsp; (no login info is requested at this point)

The project checks out ok:
Completed: At revision: 0 

I create a new text file, drop it into the folder.

Right click on the file -> Tortoise SVN -> Add
Added: C:\Documents and Settings\amclin\Desktop\New Folder\Test.txt
Now the file icon is marked with a nice big blue + to indicate it is to be added on the next commit

Right click on the file -> SVN Commit
Adding: Desktop\New Folder\Test.txt
Now prompted with the Login details
Sending content: Desktop\New Folder\Test.txt
Error: Commit failed (details follow): 
Error: PUT of '/svn/jamfphp/!svn/wrk/e98910e9-91fd-3a4d-8d0c-5375bb0549dc/Test.txt': 501 Method Not Implemented (http://joomlacode.org



If I provide incorrect login details I get:
Error: Commit failed (details follow): 
Error: CHECKOUT of '/svn/jamfphp/!svn/ver/0/': authorization failed (http://joomlacode.org

So obviously it isn't a login problem


So what am I doing wrong? I'm following the instructions and video tutorials on all the various pages that you have been kind enough to link for me, but as you can see, it isn't working. Either I'm missing something painfully obvious, or something isn't documented properly.

Re: Cannot commit to SVN for my project?

Posted: Wed May 09, 2007 1:51 pm
by ianmac
try doing:

svn --username joeblow commit -m "Commit message"

I think this has helped me in the past.

Ian

Re: Cannot commit to SVN for my project?

Posted: Wed May 09, 2007 3:50 pm
by dynedain
Thanks ianmac, I had thought along those lines too, but even with a commit message I still get the error.

Re: Cannot commit to SVN for my project?

Posted: Wed May 09, 2007 3:56 pm
by ianmac
The difference that worked for me was not the commit message, but specifiying --username on the command line with the proper user.

Ian

Re: Cannot commit to SVN for my project?

Posted: Wed May 09, 2007 3:59 pm
by dynedain
Unfortuneately, I don't have that option. As I mentioned, I'm on Windows and trying this with Tortoise SVN (I also have tried the SVN included as part of EasyEclipse for PHP, but with the same results) so I don't have the ability to try command-line commits.

Re: Cannot commit to SVN for my project?

Posted: Wed May 09, 2007 4:02 pm
by ianmac
ahhh...  I see...  I don't use Windows anymore, so I can't help you then.  I suspect it is related though.  You probably did an anonymous checkout (the new forge allows this) and now you can't commit.  Just my guess though.

Ian

Re: Cannot commit to SVN for my project?

Posted: Wed May 09, 2007 4:31 pm
by dynedain
ianmac wrote:You probably did an anonymous checkout (the new forge allows this) and now you can't commit.


That is absolutely correct! The key was the anonymous checkout. I had done anonymous checkout of the Joomla 1.5 repository and so my anonymous login credentials were being saved. This of course meant that whenever I did a checkout of my project, it was using the anonymous credentials.

So, the solution for me was to clear my saved authentications in Tortoise and attempt another checkout, which prompted me with the checkout login window that I wasn't getting before.

Thanks for the help! Marking this one solved.

Re: Cannot commit to SVN for my project?

Posted: Wed May 09, 2007 4:43 pm
by ianmac
Great!

Glad it got you going!

Good luck!
Ian

Re: Cannot commit to SVN for my project?

Posted: Wed May 09, 2007 4:56 pm
by RobInk
Thanks for all the feedback, and your help Ian. This way we can help other as well.

Re: Cannot commit to SVN for my project?

Posted: Wed May 09, 2007 6:18 pm
by igd
how did you clear your tortoise cache mate? im having the same problem.

Re: Cannot commit to SVN for my project?

Posted: Wed May 09, 2007 6:20 pm
by dynedain
Right-click on folder -> Tortoise SVN -> Settings -> Saved Data

Click the "clear" button next to "authentication data"

Re: Cannot commit to SVN for my project?

Posted: Wed May 09, 2007 6:26 pm
by igd
yep nice one just found that, thanks much mate.