# HG changeset patch # User Augie Fackler # Date 1441979776 14400 # Node ID dcd78275075f21c94dc01319ba92a27daef89713 # Parent 26560465f5f6f7074076318744d9296d4177e13b 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. diff --git a/.hgrc b/.hgrc --- 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()^)