changeset 366:dcd78275075f

hgrc: rework "smart" revset to exploit upstream() from remotebranches This way you really only see things that aren't pushed, even if you're pushing to a server in draft phase for someone to do a final review pass.
author Augie Fackler <raf@durin42.com>
date Fri, 11 Sep 2015 09:56:16 -0400
parents 26560465f5f6
children 9e17f111c3d9
files .hgrc
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/.hgrc
+++ b/.hgrc
@@ -76,4 +76,5 @@ changeset.secret = red
 desc.here = inverse
 
 [revsetalias]
-smart = (parents(not public()) or not public() or . or head()) and (not obsolete() or unstable()^)
+canmutate = not (public() or upstream())
+smart = (parents(canmutate) or canmutate or . or head()) and (not obsolete() or unstable()^)