I am new to Mercurial and version control in general, so I’m sure this is a pretty basic question but I have, as yet, been unable to find the answer.
I am working on a small project which is under Mercurial version control. The project and the .hg repository are currently on my local drive (C:\MyProject.hg), however I would like to move the whole lot to another location (in this case a network drive) which is backed up every night. I would want this new location to become my working directory.
My question is, can I simply copy the MyProject directory (and hence the .hg repository) to the new location and have everything work as it did on my local drive? Or does this via Mercurial commands (eg clone) so that Mercurial knows about the change of location?
You can do a normal copy of the folder, but if you plan to continue using your local version, you should make the copy with the
hg clone, so you can do ahg pullorhg pushto sync the versions. You can still push and pull if you don’t usehg clonebut it makes it a little easier.