Skip to content

Instantly share code, notes, and snippets.

@demoive
Last active December 3, 2015 00:06
Show Gist options
  • Save demoive/95c52cb8c753cc68da29 to your computer and use it in GitHub Desktop.
Save demoive/95c52cb8c753cc68da29 to your computer and use it in GitHub Desktop.
My config settings for Mercurial
[ui]
username = Paulo Ávila #<>
status.modified = blue bold
status.added = green bold
status.removed = red bold
#status.deleted = cyan bold
#status.missing = ??
#status.unknown = blue bold
#status.ignored = black bold
[alias]
#sl=smartlog --template "{shortest(node)} {author|user} {bookmarks % '{ifeq(bookmark, current, label(\"custom.yellow\", \" {bookmark}*\"), label(\"custom.green\", \" {bookmark}\"))}'} {ifeq(branch, 'default', '', label(\"custom.bold\", branch))}\n{desc|firstline}\n\n"
# Smart Log (long) - sll
# Intelligent Log - il
sll = smartlog --template "{shortest(node)} {label('blue', \"{author|user}\")}{bookmarks % ' {ifeq(bookmark, current, label(\"yellow\", \"{bookmark}*\"), label(\"green\", \"{bookmark}\"))}'} {label(\"cyan\", \"({date|age})\")}\n{desc|firstline}{ifeq(rev, revset('.'), '\n{file_mods % \'\n M {file}\'}{file_adds % \'\n A {file}\'}{file_dels % \'\n R {file}\'}')}\n\n"
# Genius Log
gl = smartlog --template "{shortest(node)} {label('blue', \"{author|user}\")}{bookmarks % ' {ifeq(bookmark, current, label(\"yellow\", \"{bookmark}*\"), label(\"green\", \"{bookmark}\"))}'} {label(\"cyan\", \"({date|age})\")}\n{desc|firstline}{ifeq(rev, revset('.'), '\n{file_mods % \'\n {label(\"status.modified\", \"M\")} {label(\"magenta\", \"{file}\")}\'}{file_adds % \'\n {label(\"status.added\", \"A\")} {label(\"magenta\", \"{file}\")}\'}{file_dels % \'\n {label(\"status.removed\", \"R\")} {label(\"magenta\", \"{file}\")}\'}')}\n\n"
# Very Smart Log
vsl = smartlog --style ~/.hg_template
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment