changeset 28:738bba735a40

gitnode: new alias for getting git hashes in an hg-git repo
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Thu, 03 Dec 2015 12:39:06 -0500
parents 884f2aff642d
children 7ef4d6bfe602
files hgrc
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgrc
+++ b/hgrc
@@ -20,6 +20,7 @@
 amend=amend -D
 la=glog -Twip
 ll=glog -Twip -r ::.
+gitnode=log -T "{gitnode|short}\n"
 
 # These are all the extensions that I use.
 [extensions]
@@ -140,5 +141,7 @@
 [templates]
 wip = '{label("log.branch", ifeq(branch, "default", "", branch))} {label("changeset.{phase}", rev)} {label("log.user", author|user)}{label("log.tag", if(tags," {tags}"))} {bookmarks % "{ifeq(bookmark, currentbookmark, label('log.activebookmark', bookmark), label('log.bookmark', bookmark))} "}({label("log.date", date|shortdate)})\n{label(ifcontains(rev, revset('parents()'), 'desc.here'),desc|firstline)}\n'
 
+gwip = '{label("log.branch", ifeq(branch, "default", "", branch))} {label("changeset.{phase}", gitnode|short)} {label("log.user", author|user)}{label("log.tag", if(tags," {tags}"))} {bookmarks % "{ifeq(bookmark, currentbookmark, label('log.activebookmark', bookmark), label('log.bookmark', bookmark))} "}({label("log.date", date|shortdate)})\n{label(ifcontains(rev, revset('parents()'), 'desc.here'),desc|firstline)}\n'
+
 [revsetalias]
 wip = (parents(not public()) or not public() or . or head()) and (not obsolete() or unstable()^) and not closed()