From 4b83fdb6f3ecebb5ee7a7261481f35578a9a35e8 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Fri, 16 Aug 2013 22:50:48 -0500 Subject: [PATCH] .hg: Initial commit for .hgrc and .mercurial/* Add config files for Mercurial --- .hgrc | 48 +++++++++++++++++++++++++++++++++++++++ .mercurial/styles/oneline | 15 ++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 .hgrc create mode 100644 .mercurial/styles/oneline diff --git a/.hgrc b/.hgrc new file mode 100644 index 0000000..0429218 --- /dev/null +++ b/.hgrc @@ -0,0 +1,48 @@ +[ui] +username = Tony Duckles + +[extensions] +color = +graphlog = +pager = +rebase = +purge = +remotebranches = $HOME/.mercurial/extensions/hg-remotebranches/hg_remotebranches.py +prompt = $HOME/.mercurial/extensions/hg-prompt/prompt.py +hgext.bookmarks = +hggit = +hg-svn = $HOME/.mercurial/extensions/hg-svn/hgsubversion + +[alias] +show = log --stat -vpr +ll = log --style=$HOME/.mercurial/styles/oneline +graph = glog --style=$HOME/.mercurial/styles/oneline + +[pager] +pager = LESS='-FiRX' less +ignore = version, update +attend = annotate, cat, diff, export, glog, graph, help, incoming, ll, log, outgoing, show, status + +[color] +status.modified = green bold +status.added = yellow bold +status.removed = red bold +status.deleted = cyan +status.unknown = blue bold +status.ignored = black bold + +diff.diffline = blue bold +diff.extended = cyan +diff.file_a = red bold +diff.file_b = green bold +diff.hunk = magenta bold +diff.deleted = red bold +diff.inserted = green bold +diff.changed = white +diff.trailingwhitespace = bold black_background + +[diff] +git = True + +[bookmarks] +track.current = True diff --git a/.mercurial/styles/oneline b/.mercurial/styles/oneline new file mode 100644 index 0000000..8b010a1 --- /dev/null +++ b/.mercurial/styles/oneline @@ -0,0 +1,15 @@ +changeset = '\033[0;33m{rev} \033[0m{desc|firstline|strip} {bookmarks}{tags} \033[0;30;1m(by {author|person}, {date|age})\033[0m\n' + +start_branches = '\033[0;32;1m(' +branch = '{branch}' +end_branches = ')\033[0m' + +start_bookmarks = '\033[0;32;1m(' +bookmark = '[{bookmark}] ' +last_bookmark = '[{bookmark}]' +end_bookmark = ')\033[0m' + +start_tags = '\033[0;32;1m(tag: ' +tag = '{tag}, ' +last_tag = '{tag}' +end_tags = ')\033[0m' -- 2.43.0