# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1449164346 18000 # Node ID 738bba735a40432f332e72b7e7702e328eee2787 # Parent 884f2aff642d7a5789f0d82b3cf3cec72e0781f5 gitnode: new alias for getting git hashes in an hg-git repo diff --git a/hgrc b/hgrc --- 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()