Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3238418
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:51:05+00:00 2026-05-17T17:51:05+00:00

While somehow versed in VCS (regular svn, git and git-svn user) I can’t seem

  • 0

While somehow versed in VCS (regular svn, git and git-svn user) I can’t seem to wrap my head around this peculiar SVN behavior.

Whenever I need to rename a directory in my SVN working copy from an otherwise ‘clean’ state – i.e svn status returns nothing and all other modifications have been commited – like so (which is what the svn doc suggests):

svn mv foo bar
svn commit

SVN complains loudly:

Adding         bar
Adding         bar/toto
Deleting       foo
svn: Commit failed (details follow):
svn: Item '/test/foo' is out of date

As you wish:

svn update

Which gives:

   C foo
At revision 46.
Summary of conflicts:
  Tree conflicts: 1

There’s a tree conflict, while no third-party change happened. Obviously, the only way to get out of this tree conflict mess is generically (from the svn red book):

svn resolve --accept working -R .
svn commit

Renaming it remotely on the repo then updating my working copy seems quite braindead:

url=$(svn info | grep -e '^URL:' | sed 's/^URL: //') svn mv $url/foo $url/bar
svn update

Is there a sanctioned, more streamlined way to rename a folder that I’m missing? What is the root cause behind that particularly surprising tree conflict state?

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T17:51:05+00:00Added an answer on May 17, 2026 at 5:51 pm

    svn mv works for me:

    C:\svn\co>svn mv my_dir new_dir
    A         new_dir
    D         my_dir\New Text Document.txt
    D         my_dir
    
    
    C:\svn\co>svn commit -m foo
    Raderar             my_dir
    Lägger till         new_dir
    
    Arkiverade revision 2.
    
    C:\svn\co>
    

    Sorry for the Swedish output of svn.

    There must be something else that is wrong in your case.

    Edit:
    As pointed out in the comments by Lloeki

    To reproduce the behavior you also need to update and commit a file contained in the folder, but not update the folder itself.

    file commit creates a new rev n on the
    repo, but local metadata is not
    updated (as it has always be, see svn
    log after any commit) , thus dir
    metadata is at rev n-1. It follows
    that svn won’t commit because of the
    metadata diff, and it won’t update
    because there’s indeed a conflict on
    the dir: update metadata vs delete.

    The behavior is “expected” and the “solution” is to update the working copy before issuing the svn rename command.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to wrap my head around this one this morning. I am
while debugging a C++ program with GDB, is it possible somehow to add comments
I have a somehow funny issue. While trying to understand why a certain website
While reading some documentation here , I came across this: unsigned unitFlags = NSYearCalendarUnit
I would like to somehow paginate my scroll function so that I can choose
While poking around the questions, I recently discovered the assert keyword in Java. At
While debugging a C program in Visual Studio 2008, is it possible somehow to
Is it possible to somehow retrieve the pin code from WebView in Android while
I've somehow managed to screw up bash while fiddling with the $PATH variable in
I've been developing Rails for a while, but somehow avoiding using capistrano until now.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.