Error when importing to subversion repository – “The requested operation cannot be performed on a file with a user-mapped section open”

I wanted to move a Subversion repository from a flat structure into the more desirable

My Repository
/trunk
/ branch
/ tag

folder structure. I found the easiest way to do this was to dump the repository to a file, then import it again in the correct location, something like

svnadmin dump C:\Repositories\OldRepo > OldRepoDumpFile
svnadmin load –parent-dir /trunk C:\Repositories\NewRepo < OldRepoDumpFile

On the load though I got the following error, at different times during the import

The requested operation cannot be performed on a file with a user-mapped section open.

This literally means the file is open somewhere else, where??? AVG Anti-Virus (or your virus scanner of choice). I went into AVG, disabled the Resident Shield (temporarily) and the file loaded absolutely fine (and a lot faster to boot).

  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Technorati
  • Twitter
Posted Tuesday, December 1st, 2009 under Computers, Development.

6 comments

  1. I wouldn’t switch AVG’s resident shield altogether.

    What you can do is open up Resdient Shield, click on Manage Exceptions and add the folder containing the Subversion repository as an exclusion.

  2. Woops, that should have read:

    > I wouldn’t switch AVG’s resident shield off altogether.

  3. Jeff Davies says:

    You are a life saver. Once I disabled my resident shield with AVG it worked fine. I thought it was a Vista problem. I’ll now take William’s advice and alter AVG to excluse my repository directory. :)

  4. Good tip William, I’ve only had the problem once on my import, but if it comes up again I’ll add an exception thanks.

  5. Problem came up again yesterday and I added an exception, solved it properly now, thanks :)

  6. Thanks for sharing. I also had this problem, AVG on Windows 7.

Leave a Reply

Get Adobe Flash playerPlugin by wpburn.com wordpress themes