All Tips

  1. Debug Command Tricks

    by Friedrich Kastner-Masilko on April 23

    Mercurial has some “hidden” debug commands that can make your day in special situations.

  2. Keeping Informed with Progress

    by David Harrigan on March 24

    Ever get the feeling that hg is holding back on you? Want to keep a tab on what it’s doing? Be progressive!

  3. Merging MQ Patches with Rebase

    by Steve Losh on February 11

    MQ patches don’t usually merge well, but you can use the rebase extension to fix that!

  4. Styling Mercurial’s CLI

    by Steve Losh on January 15

    Mercurial’s command line interface is great, but with a little bit of work we can make it even better!

  5. Finding Uncommon Changesets

    by Steve Losh on December 9

    How can you tell which changesets are included in revision X but not in Y?

  6. Handling Binary Files in a Merge

    by Ryan Wilcox on November 30

    Mostly we deal with text, source code etc. But sometimes we put binary files into our repository and dealing with the inevitable merge conflict is not as easy as source code.

  7. Reverting Dirty Files

    by Ryan Wilcox on November 30

    You’ve made some changes you don’t want to commit, here’s how to clear them out.

  8. Combining Repositories

    by Steve Losh on November 17

    What can you do when you realize: “Oh, maybe the documentation should be in the same repository as the code?”

  9. Using Convert to Decompose Your Repository

    by Thomas G. Willis on November 16

    What if your repository is too big for its own britches, and you would rather the projects contained within be their own repositories? But darn it, what about the history?

  10. Create a Git Mirror

    by Steve Losh on November 9

    You’ve chosen Mercurial, but lots of other people prefer git. Make it easy for them to contribute to your project.

  11. Save Keystrokes

    by Steve Losh on October 30

    Some of the things you can use for aliases might surprise you.

  12. Show Changesets Not Yet Pushed

    by Ryan Wilcox on October 27

    Show what changesets you’ve created since last time you pushed.

  13. Always Use Git Diffs

    by Steve Losh on October 22

    Do you really need diffs that are compatible with a program released in 1985?

  14. Free Hosting at BitBucket

    by Steve Losh on October 13

    BitBucket will host your static website for free.

  15. Open BitBucket from Bash

    by Steve Losh on October 8

    Tired of manually firing up a web browser to go a repository’s BitBucket page?

  16. Shortlog for Fun and Profit

    by Steve Losh on October 7

    Adding an hg shortlog alias will let you do a lot of nifty things.

  17. Shortcuts for Specifying Revisions

    by Steve Losh on October 5

    You don’t always have to use a number — Mercurial has a lot of tricks up its sleeve.

  18. Stay Sane with Graphlog

    by Steve Losh on October 3

    Using hg log works great until you have a few branches, then it gets crazy. Graphlog can save you.

  19. Creating Repositories Over SSH

    by Steve Losh on October 2

    You don’t need to log into the server to create a new repository, you can use hg clone to do it.

  20. Configuring User Auth for HTTPS

    by Zachary Voase on October 1

    Configure Mercurial to not prompt for your password every time you push/pull via HTTPS.

  21. Detecting Renames Automatically

    by Steve Losh on September 30

    Mercurial can figure out which adds/removes are actually renames, if you ask nicely.

  22. Configuring Mercurial

    by Steve Losh on September 30

    Learn how to configure Mercurial to behave however you like.

  23. The Fetch Extension

    by Zachary Voase on September 29

    If you’ve migrated from Git and miss the auto-merging action of git pull, this might be the extension you’re looking for.

  24. Quickly Show Changeset Information

    by Steve Losh on September 29

    Want to view all the details of a changeset? Add an hg show alias.

  25. Nudge — A Gentler Version of Push

    by Steve Losh on September 28

    Add an hg nudge alias to push only the working directory’s parent(s).

  26. Set Your Username

    by Steve Losh on September 28

    Before you start working with Mercurial, you should set your username so people will know who you are.