# HG changeset patch # User Augie Fackler # Date 1538706773 14400 # Node ID bec91aeefddc10b0f2a6090d614d67a315381d14 # Parent e1ce8897030d712f7cb49f353f1fbddd4dab1ba3 hg: switch from out-of-tree remotebranches to in-tree remotenames I've finally got the functionality I need in core! diff --git a/.hgrc b/.hgrc --- a/.hgrc +++ b/.hgrc @@ -18,7 +18,7 @@ hgext.schemes= hgext.shelve= show= hgext.transplant= -hg_remotebranches= +remotenames= [alias] ll=log --graph --style compact --limit 6 -r 'sort((::. or bookmark() or heads(upstream())), "-rev")' @@ -89,7 +89,7 @@ sl. = log -Gr 'smart and ::.' -Tsl sl_branch = '{ifeq(branch,"default","","{label(black_background, branch)} ")}' sl_node = '{label("log.changeset changeset.{phase}", shortest(node))}{if(ellipsis, "...")}' sl_user = '{label("grep.user", author|user)}' -sl_tags = '{label("tags.normal", if(tags," {tags}"))}' +sl_tags = '{label("tags.normal", if(tags," {tags}"))} {label("tags.normal", if(remotenames, " {remotenames}"))}' sl_book = '{label("sl.book", if(bookmarks," {bookmarks}"))}' sl_topic = '{label("sl.topic", if(topics," {topics}"))}' sl_desc = '{label(ifcontains(rev, revset('.'), 'desc.here'),desc|firstline)}' @@ -105,7 +105,8 @@ changeset.secret = red desc.here = inverse [revsetalias] -canmutate = not (public() or upstream()) +upstream = ::remotenames() +canmutate = not (public() or upstream) - obsolete() smart = ((parents(canmutate) or canmutate or (head() - closed())) and (not obsolete() or orphan()^)) or . %include .private/hgrc