Re: Script to obliterate the most recent revision(s)
From: Julian Foad <julianfoad_at_apache.org>
Date: Fri, 23 Mar 2018 11:18:39 +0000
I filed https://issues.apache.org/jira/browse/SVN-4730, "'svnadmin
The following script ("rollback-1.sh") incorporates some of your
[[[
set -ex # stop on error; show cmds executed
# repository directory
# desired new head revision
# check the repository format is one we know how to handle
# check the unwanted revisions have not been packed
# remove the 'current' file; let 'svnadmin recover' recreate it with the
# remove the unwanted revision files
# remove all pending txns, in case they reference an unwanted rev
# Prune the rep-cache. This is essential, otherwise later commits will be
# re-start all repository-accessing processes (svnserve, httpd)
# 'recover' recreates the 'current' file according to the last rev found,
]]]
- Julian
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.