Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.