using mercurial

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&#8221; 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.

 

 

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s