How to find, who executed "push -f" command

Matt Mackall mpm at selenic.com
Fri Nov 30 20:01:33 UTC 2012


On Fri, 2012-11-30 at 13:23 -0600, Kevin Bullock wrote:
> On Nov 30, 2012, at 12:28 PM, Matt Mackall wrote:
> 
> > On Fri, 2012-11-30 at 23:19 +0530, Jeshwanth Kumar N K Jeshu wrote:
> >> Hello All,
> >> 
> >> I started using mercurial recently, I have one small doubt about push
> >> command. How can I know who has executed push -f ( force push) command in a
> >> repository.
> >> 
> >> Thanks :).
> > 
> > I recommend:
> > 
> > https://en.wikipedia.org/wiki/Trial_by_ordeal
> > 
> > Mercurial internally does not store any logs beyond what you see in the
> > changelog. There are a couple external projects that do this such as
> > Mozilla's pushlog tool that could be helpful though.
> 
> You might also consider setting a hook on your shared repo to prevent creating new heads entirely (thus preventing push --force from working).

There's a big hole in the wiki in this area, I think.

-- 
Mathematics is the supreme nostalgia of our time.





More information about the Mercurial mailing list