Mercurial (client side)

Mercurial is available for all platforms. it’s a distributed revision control tool. I wrote down some hints and tips encountered when working with Mercurial.

when using hg on Linux you may receive an error that the user or group is untrusted when trying to pull or push. in order to get rid of this error you need to add a trusted user to your hgrc file (either the global one in /etc/mercurial/hgrc (your installation directory), or your own located in your home folder)

users = root

If you have many repositories you may want to update them all at once. The following scripts starts searching for any mercurial repository from the actual directory and executes the command specified via std.in. (this script can be easily adapted to run on Windows if you have the GNU tools installed)

echo "enter comand: hg"
read cmd
find . -name ".hg" -type d -execdir pwd \; -execdir hg $cmd \;

well, now we have to provide the username and password for each repository seperately (if you have it enabled). In order to get rid of mercurial authentification you may want to add the auth section to your hgrc file. if you authenticate via Apache you may add a rewrite section to your hgrc file like this:

https://domain.com = https://username:password@domain.com

be aware that the password is stored in plain text, so at least use the hgrc file in your home directory, as you should be the only one to have access to.

to set ur username edit the configuration file and add
username = Firstname Lastname

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/7/d395059870/htdocs/dp/wp-includes/class-wp-comment-query.php on line 405

Comments are closed.