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

RE: Commit failed (I'm a beginner to Subversion and TortoiseSVN)

From: Shah, Ravi P. CIV NAWCAD, 4.1.4 <ravi.shah_at_navy.mil>
Date: 2007-05-08 23:23:27 CEST

First and foremost, Thanks for your response!!! I've re-created the
scenario here using the Subversion manual.

A. Created new repository

        1. In C:\, created empty folder named SVN2

        2. In the SVN2 folder, created MyNewRepository

        3. On the command prompt, went to path C:\SVN2. In this path,
entered the command:
     svnadmin create --fs-type fsfs MyNewRepository

B. I created a MS VC++ project under the path: My Documents\SVN
projects\helloSVN. In other words, it's helloSVN. I attempted to change
the repository for the file, helloSVN.cpp.

        1. On the command prompt, went to the path, MyDocuments\SVN

        2. svn import helloSVN file:///C:/SVN2/MyNewRepository

        3. Got the following message:
        svn: Could not use external editor to fetch log message;
consider setting the $S VN_EDITOR environment variable or using the
--message (-m) or --file (-F) options

        svn: None of the environment variables SVN_EDITOR, VISUAL or
EDITOR is set, and
        no 'editor-cmd' run-time configuration option was found

        3. Next attempt:
           svn import helloSVN file:///C:/SVN2/MyNewRepository \ -m
"Initial Import"

        4. Got the following message:
           svn: Too many arguments to import command

        5. Next attempt:
           svn import helloSVN file:///C:/SVN2/MyNewRepository -m
"Initial Import"
        6. Listed all files and directories added under helloSVN and
showed message
           "Committed revision 1".

        7. Did a checkout: svn checkout file:///C:SVN2/MyNewRepository

        8. Listed all the paths that were checkout

        9. changed paths to the C:\ directory

        10. entered the following command: svn list

        11. Listed the files and directories

        12. I looked in Windows Explorer and realized that a folder
named MyNewRepository was added in My Documents\SVN projects\helloSVN.

        13. So far, I've been unable to revert what I checked out. I've
tried the following command lines: (... indicates intermediate directory
            svn revert file:///C:.../My
            svn revert file:///C:/SVN2/MyNewRepository
            svn revert file:///C:.../My Documents/SVN projects/helloSVN
            svn revert file:///C:/SVN2
            svn revert file:///C:.../My Documents/SVN

        14. All these attempts gave me the following error messages:
            svn: 'file:\\\C:\Documents' is not a working copy
            svn: Can't open file 'file:\\\C:\Documents\.svn\entries':
The filename, directory
                name, or volume label syntax is incorrect.

I am wondering what happened here. I know I created working copies and
checked them out. How come I am unable to revert?


-----Original Message-----
From: Ryan Schmidt [mailto:subversion-2007b@ryandesign.com]
Sent: Thursday, May 03, 2007 15:31
To: Shah, Ravi P. CIV NAWCAD, 4.1.4
Cc: users@subversion.tigris.org; simon.tortoisesvn@googlemail.com;
Subject: Re: Commit failed (I'm a beginner to Subversion and

On May 3, 2007, at 08:58, Shah, Ravi P. CIV NAWCAD, 4.1.4 wrote:

>> On May 2, 2007, at 14:29, Shah, Ravi P. CIV NAWCAD, 4.1.4 wrote:
>>> Error: Commit failed (details follow):
>>> Error: File already exists: filesystem 'C:/SVN/MyNewRepository/db',
>>> transaction '2 -1', path 'helloCVS.cpp'
>> I'm not sure why you're seeing that. It's hard to guess without
>> knowing more about your setup. Off the top of my head, it sounds like

>> you're trying to add a file to the repository that is already in the
>> repository.
>> Using the command line, can you post the steps to recreate this
>> problem?
>> Begin with "svnadmin create".
> Would I need to destroy the repository and create a new one? If it's
> possible, I wouldn't have a problem doing that. I didn't add much to
> the repository.

Oh no, you don't need to destroy your existing repository. You can
create as many repositories as you want. So I recommend you make a new
temporary directory on your hard disk somewhere and make a new temporary
repository in there and copy down all the steps you use to get into this
situation so that we can see what's going on.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue May 8 23:23:51 2007

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

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