BanChangesets Mercurial Extension Released!

Update: I have changed the name of this extension from ExcludeChangests to BanChangesets. (9-Oct-2011)

Just a quick note to say I uploaded my first published Mercurial extension!

BanChangesets can be used to ensure that certain changesets which are determined to be “bad” by a team can be banned from being repushed to a central repository.

Imagine that you have a team of people working on a mercurial repository. One of the members of the team pushes a changeset or group of changesets to the central repository but these changesets are “bad” for one reason or another. (Maybe some branch was merged when it should not have been, etc. Maybe some nuclear launch codes were accidentally committed, etc.). Ideally this should never happen. In practice it happens all too frequently.

So typically the leader of the project will send out an email saying something like: Please strip the following revisions from your repositories:


The problem is of course that in a team of say 20 people someone might have already pulled the “bad” revisions and they may accidentally miss the email, and re-push these bad revisions back to the central server.

The extension ban-changesets is intended to prevent such a re-push of these “bad” changesets.

See the full details here and on the wiki page


  1. __B__ Said,

    May 27, 2011 @ 2:34 am

    This is really, really interesting. I hope that this extension would be bundled with mercurial in the future. 🙂

  2. Johan Said,

    March 4, 2012 @ 5:19 pm

    Maybe you should add your extension to the appropriate part of page ‘’ too ?

Leave a Comment