A tool for editing version-control repository history.

reposurgeon enables risky operations that version-control systems don't want to let you do, such as editing past comments and metadata and removing commits. It works with any version control system that can export and import git fast-import streams, including git, hg, fossil, bzr, CVS, RCS, bk, and src. It can also read Subversion dump files directly and can thus be used to script production of very high-quality conversions from Subversion to any supported DVCS.


reposurgeon-3.44.tar.xzcompressed source tarball
COPYINGproject license
NEWSproject news
TODOto-do file
reposurgeon-3.44.md5source tarball MD5 checksum
reposurgeon.htmlHTML rendering of reposurgeon.xml
dvcs-migration-guide.htmlDVCS migration HOWTO
reporting-bugs.htmlHow to report bugs
repocutter.htmlHTML rendering of repocutter.xml
features.htmlHow reposurgeon wins
repodiffer.htmlHTML rendering of repodiffer.xml

The project repository is at

Project statistics are available at OpenHub.

There is a project IRC channel.

If you appreciate this code (and especially if you make money by using it) please support me on Patreon.

Recent Changes

3.44: 20-18-04-29::
     New 'setperm' command for patching file path permissions.
     Abandon cyreposurgeon in favor of PyPy, which gives a better speedup.
     Max working-set size has been reduced, enabling handling of larger repos.
     New 'gitify' command for massaging comments into git conventional form.
     The tag command now allows deleting all tags matching a regexp.
     Fix crash when chaining '|', '&', '?' selection operators.


This work is funded by...

My Bronze supporters on Patreon: Martin Hohenberg, Jae Yang, Daniel Garber, Kyle Burkholder, Mike Nichols, Mark Ping, John D. Bell, Tom Taylor, Arnold F. Williams, George Brower, Michael Nygard, Brendan Long, Sven Dowideit, Dave Witten, Jonathan Cast, James Cronin, David L. Jessup, Christopher Chang, Killer Delicious, Jacob Lyles, Neil Anuskiewicz, Mordant, Clemens Ladisch, Wojciech Woytniak, Masa Bando, John Carmack, Xingyu Wang.

My Institutional supporters on Patreon: Jason Azze and the DEVOPS team at his $DAYJOB.