Sunday, July 23, 2017

Mercurial: Tips and tricks

1. Usage: Completely remove a named branch.

$: hg strip "branch(${BRANCHNAME})"

2. Now re-iterate for all the branches you have, that's it

$:hg pull -u

3. To check if you have any unwanted changes

$:hg outgoing

4. Add, Remove tag

$:hg tag -r newrevisionhash stable
$:hg tag --remove stable

5. Incoming and Outgoing

$:hg incoming
$:hg incoming -p
$:hg incoming -b <branchname>
$:hg incoming -p -b <branchname>

No comments:

Post a Comment