From 932141a67819966cc484d68a1cd47ded8825b0e2 Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Sun, 1 Oct 2023 10:55:07 -0700 Subject: [PATCH] add mercurial extensions and aliases --- .config/hg/hgrc | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/.config/hg/hgrc b/.config/hg/hgrc index a099511..532a90f 100644 --- a/.config/hg/hgrc +++ b/.config/hg/hgrc @@ -1,5 +1,37 @@ [ui] username = Morgan McMillian +# This setting updates a large number of settings for a better user experience, +# and is highly recommended for that reason!! +tweakdefaults = true + [extensions] -hgext.convert= +# Mercurial has support for extensions and there are a few we want to turn on. +# We do not specify a value which tells Mercurial to look for them in the +# default locations. + +# The rebase extension allows us to move a commit. This is very useful when an +# upstreamed change causes some conflict with your local code and will make it +# easier for you to resolve the conflict. +rebase = + +# The evolve extension lets you safely edit history. +evolve = + +record = + +[revsetalias] +# revsetaliases are shortcuts to select commits to operate on. + +# This wip revsetalias will select all commits that are on your current branch +# but not on the default branch. +wip = only(.,default) + +[alias] +# The lg alias is the same as the normal `hg log` but it will show the graph as +# well as commit phase in its output. +lg = log --graph --template phases + +# The wip alias will show every commit between the upstream and your work in +# progress. +wip = log --graph --rev wip