Subversion merges commit with previous commit

Is it possible in subversion to allow commit to be part of the previous commit. Say you forgot to commit a specific file, can you transfer this file as if you committed it in a previous commit?

+4
source share
3 answers

I'm afraid you can’t. Other version control systems allow this, but not Subversion.

Your only chance would be to dump the complete repository, delete the last commit from the dump, restore the dump and start again ... but I would not even think about this idea.

+2
source

If you have access to the server / storage location, you can delete your original commit .

After that, you can do your commit again, but first add a new file. If this is a multi-user team, you need someone who upgraded to the new version, upgrade it to the old one, and then upgrade again.

This is not related, but the project I am working on has a "pre-commit-check" script that we run before committing. Among other things, it catches when we forget to add files.

+1
source
  • Dump in the repository.
  • Change the dump.
  • Move the repository to the side.
  • Create a new repository.
  • Upload a dump to the repository.
+1
source

Source: https://habr.com/ru/post/1333031/


All Articles