A handy revset hack - public

Matt Mackall mpm at selenic.com
Wed Jul 13 18:27:32 CDT 2011


I've added this to my .hgrc:

[revsetalias]
public = (not outgoing("http://selenic.com/hg") or not
outgoing("http://hg.intevation.org/mercurial/crew/"))

Now I can do:

 hg log -r 'not public'

and find any commits that are not published on either the main repo or
on crew. Among other things, this lets me know what's safe to rebase or
otherwise tweak.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list