top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Is there a way to detect that current directory is the root of SVN repository by reading files into .svn directory?

0 votes
398 views

Is there a way to detect that current directory is the root of SVN repository by reading files into .svn directory ? I think "svn info" could be used for that. Problem is that some machines may not have access to "svn" command line (if using tortoise and svn is not in command PATH for example).

In case "svn info" (or any other command line) is the only way, what would be the proper way to do it ?

posted May 27, 2015 by Kiran

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

Beginning with Subversion 1.8, svn info prints repository-relative URLs. See Subversion 1.8 Release Notes entry at http://subversion.apache.org/docs/release-notes/1.8.html#svn-info.

For example, if you run svn info at the root of the repository, you'll see

...
Relative URL: ^/
Repository Root: https://svn.example.com/svn/TestRepo
...

If you run svn info in a subtree, you'll see

...
Relative URL: ^/TestProject/trunk
Repository Root: https://svn.example.com/svn/TestRepo
...
answer May 27, 2015 by Amit Parthsarthi
Similar Questions
0 votes

I created a repo using svnadmin create in a dir called trunk (that's what your supposed to do, right?) The operation succeeded but the files that I want to version (c source which I should have versioned long ago.)

I can't seem to add to the repo. When the code is ready for alpha release I plan to host it on source forge but until then It's just me working on the code and my online connection is intermittent so I decided to create my repo locally.

+2 votes

While merging branch back to trunk I constantly get the error in the subject. Note that x/y/z has svn:mergeinfo property. The property was not added on the branch, but it was already there when the branch was created. Subsequently x/y/z is deleted on branch.

The error is generated when running: "svn merge ^/branches/mybranch" on a trunk working copy.

Sounds to me like a bug, svn tries to update the mergeinfo on the deleted path. Is that so ?

+1 vote

My most recent commit was the creation of a tag. I want to delete that tag. Should I reverse merge the commit or simply delete the tag?

If I do a reverse merge I see a tree conflict:

C:>svn merge -c -69  

--- Reverse-merging r69 into '.': 

 C tagsTAG_ 

--- Recording mergeinfo for reverse merge of r69 into '.': 

U . 

Tree conflict on 'tagsTAG_ 

 > local dir edit, incoming dir delete upon merge 

Select: (r) mark resolved, (p) postpone, (q) quit resolution, (h) help: 

What is the best thing to do here?

+2 votes

Recently we have installed SVN in a new windows server.

Migrated and loaded the users repositories in the new SVN server. I could able to access those repositories. Created users, but could not able to access those repository, login is not accepting and it prompts continuously.

We are using Tortoise SVN as front end GUI. Kindly assist me on this.

0 votes

I was handed a dump file by a 3rd party and I am supposed to analyze it. I've got it loaded and can look at the log and do all the usual things without any apparent errors. But I notice that some revision numbers are missing.

How can this be?

...