Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have been working with a local Mercurial repository on my Ubuntu PC for my personal documents. I am planning on using Windows more frequently, so I would like to move the repository over to my Windows PC.

Is it safe to simply copy the entire folder over between systems? Or must I do something else, such as clone?

Note: the Ubuntu PC is not connected to the Windows PC. I am hoping to move the repository via USB thumb drive.

share|improve this question
Clone will be more natural way – Lazy Badger Nov 7 '11 at 23:20
up vote 2 down vote accepted

Just tested this, and copying from my Ubuntu server to my Windows 7 laptop worked fine. TortoiseHg recognised everything and had all the history to hand.

I copied via SFTP, though, so line endings were converted into the Windows version. I would hope that Mercurial on Windows would do the right thing, but if you want to be sure, you can run unix2dos on the Windows PC after the copy. Running it beforehand on the Ubuntu side will leave your repository with the wrong line endings, though you could fix that...

share|improve this answer
Wonderful. Good to know. – iglvzx Nov 8 '11 at 13:24

You must log in to answer this question.

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