2

I recently took a new job, and one aspects of the job is maintaining the organisation's Umbraco website. The site was not under source control nor was there a testing environment. Changes were made to a production system with no backups.

My first step was to do source control with Mercurial so I can quickly back out of changes that break things. I accomplished this by creating a local folder, copying the web page data into it, and running hg commit.

I want to use the Robocopy /mir option to pick up deletions as well as changes and additions. My problem is that the /mir option deletes every folder it doesn't find in the source, and my .hg folder isn't in the source.

Is there any way to exclude the .hg folder from deletion, other than copying it out of the destination folder before the robocopy executes? I saw several references to the exclude feature of Robocopy, but they seem to only apply to source folders, not detestation folders.

Both the webserver and the local machine are Windows machines, and I don't have administrative rights to either.

1 Answer 1

2

While I don't use Mercurial I ran into a similar problem with Git. I worked around it by specifying an external directory for my git repository in my commit script. Works just fine.

2
  • That sounds very promising! I'll look into it! Apr 2, 2012 at 18:13
  • After much searching, it seems as though it may not be possible to specify a different folder for .hg (the repository) Jul 6, 2012 at 12:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .