0

In git, reset seems to remove commits from history, and pushing that change to remote removes history of certain commits from not only the local master but origin (remote) master.

Essentially: Resetting remote to a certain commit

Is this possible in SVN?

Ie. Not looking to create a reverse merge in svn (aka revert in git), but literally erase history from the central repo.

Community
  • 1
  • 1
imagineerThat
  • 5,293
  • 7
  • 42
  • 78

1 Answers1

0

No, it's not currently supported in SVN. From the FAQ:

The project has plans, however, to someday implement an svnadmin obliterate command which would accomplish the task of permanently deleting information. (See issue 516.)

However, there is a workaround that can work in some cases:

In the meantime, your only recourse is to svnadmin dump your repository, then pipe the dumpfile through svndumpfilter (excluding the bad path) into an svnadmin load command. See chapter 5 of the Subversion book for details about this.

The filter mechanism works at the file path level, including or excluding parts of the repository as a whole across all revisions. This is often insufficient if you want to omit a particular revision of a file, or you've committed files to a filtered path before or after the offending revision that you want to keep.

Patrick Quirk
  • 23,334
  • 2
  • 57
  • 88