i wanted to move my stuff from github to a googlecode mercurial hostinrg. github seems to have a nice way to download the code as a .zip file so i take that, unzip it and then what?
cd <projectdir-unzipped>
hg init
hg add
(the add seems to automatically recurse everything)
hg commit
hs push <repository-address>
this push thing requires the username and password for the remote repository
so, stack-overflow to the rescue
http://stackoverflow.com/questions/2584407/how-to-save-username-and-password-with-mercurial
in the Mercurial.ini file we put in
[auth]
myrepo.prefix = https://foo/bar
myrepo.username = my_uname
myrepo.password = my_passwd
the point is that when i do a commit to a repository, it looks for the “https://foo/bar” in the configuration file and if found, uses that to read the username and password, if any are found. thats what i think of it anyway.
now i seem to have managed to create the repo and all.. whooppee.