From 1797ecfa2eecd54917356da0ea0095a51e2761ff Mon Sep 17 00:00:00 2001 From: Christian Nieves Date: Wed, 3 Aug 2022 17:09:41 +0000 Subject: [PATCH] Update hgrc --- fig/.hgrc | 67 +++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 45 insertions(+), 22 deletions(-) diff --git a/fig/.hgrc b/fig/.hgrc index de6b5db..fc3cb17 100644 --- a/fig/.hgrc +++ b/fig/.hgrc @@ -1,26 +1,49 @@ -# example user config (see 'hg help config' for more info) +%include ~/hgshort/hgshort.hgrc + [ui] -# name and email, e.g. -# username = Jane Doe -username = Christian Nieves - -# We recommend enabling tweakdefaults to get slight improvements to -# the UI over time. Make sure to set HGPLAIN in the environment when -# writing scripts! -tweakdefaults = True - -# uncomment to disable color in command output -# (see 'hg help color' for details) -# color = never - -# uncomment to disable command output pagination -# (see 'hg help pager' for details) +editor = vim paginate = never +merge = vimdiff +username = Christian Nieves +# graphnodetemplate = {label("graphnode.{graphnode}", graphnode)} + +[extdiff] +cmd.meld = /usr/bin/meld +cmd.pmeld = /usr/bin/meld [extensions] -# uncomment the lines below to enable some popular extensions -# (see 'hg help extensions' for more info) -# -# histedit = -# rebase = -# uncommit = +unsupported.tree = +unsupported.alices = +extdiff = +color = +beautifygraph = + +[alices] +findings.extra_args = --proxy +summarize.extra_args = --proxy + +[merge-tools] +# meld.args = --auto-merge --label='incoming' $local --label='merged' $base --label='existing' $other -o $output +# https://www.mercurial-scm.org/wiki/MergingWithVim#More_Useful_3-Way_Diff +vimdiff.executable = vimdiff +vimdiff.args = -f -d $output -M $local $base $other -c "wincmd J" -c "set modifiable" -c "set write" +vimdiff.premerge = keep + +[committemplate] +changeset = {desc}\n\n + HG: {extramsg} + HG: user: {author}\n{ifeq(p2rev, "-1", "", + "HG: branch merge\n") + }HG: branch '{branch}'\n{if(currentbookmark, + "HG: bookmark '{currentbookmark}'\n") }{subrepos % + "HG: subrepo {subrepo}\n" } + {splitlines(diff()) % 'HG: {line}\n'} + +[alias] +whatsout = status -n --change . +whatsoutall = status --rev p4base --no-status +# unbranch = cp --forget --at-rev . $1 +unbranch = !$HG uncommit --keep $1 && $HG forget $1 && $HG add $1 && $HG amend $1 + +[trainingwheels] +warn-head-paths=False