Store password in TortoiseHg

Both existing answers suggest storing your username and password unencrypted in plain-text, which is a bit of a no-no. You should use the Keyring extension instead, as it has been specifically designed for securely saving authentication passwords. It already comes bundled with TortoiseHg, so all you have to do is activate it by writing the … Read more

“ERROR:root:code for hash md5 was not found” when using any hg mercurial commands

Running brew reinstall python@2 didn’t work for my existing Python 2.7 virtual environments. Inside them there were still ERROR:root:code for hash sha1 was not found errors. I encountered this problem after I ran brew upgrade openssl. And here’s the fix: $ ls /usr/local/Cellar/openssl …which shows 1.0.2t According to the existing version, run: $ brew switch … Read more

Can you ‘push’ to network share using Mercurial on 64bit Windows 7?

Pushing to a network share is possible, but not recommended by the Mercurial team. See the “shared disk” part in Publishing Repositories in the Mercurial wiki: generally restricted to intranets, not generally recommended due to general issues with network filesystem reliability At my workplace, we are keeping our HG repositories on a network share (on … Read more

Mercurial .hgignore for Visual Studio 2010 projects

The new things are related to MSTest stuff. This is the one that I use: # use glob syntax syntax: glob *.obj *.pdb *.user *.aps *.pch *.vspscc *.vssscc *_i.c *_p.c *.ncb *.suo *.tlb *.tlh *.bak *.[Cc]ache *.ilk *.log *.lib *.sbr *.scc *.DotSettings [Bb]in [Dd]ebug*/** obj/ [Rr]elease*/** _ReSharper*/** NDependOut/** packages/** [Tt]humbs.db [Tt]est[Rr]esult* [Bb]uild[Ll]og.* *.[Pp]ublish.xml *.resharper *.ncrunch* … Read more

Mercurial: Can I rename a branch?

Update to the stiging branch and create a new branch off of it. Then close the old branch. In summary: hg update stiging hg branch staging hg commit -m”Changing stiging branch to staging.” hg update stiging hg commit –close-branch -m”This was a typo; use staging instead.” hg push –new-branch

Is there a way to use a Mercurial repository as Git submodule?

Using git-hg. First, make sure there is a (non-Mercurial) git submodule under your main repository. If you don’t have other submodules yet, just create a dummy submodule for some library other than core-plot, for instance: main-repo $ git submodule add https://repo.url.com/repo.git repo Second, clone the core-plot library into some directory. main-repo $ git-hg clone https://code.google.com/p/core-plot/ … Read more