Mercurial provides a -A, --after
option for moves and copies, which records those operations after they've already occurred.
How can I achieve this using Subversion?
So without a better answer, here's the best mechanism I've come up with:
# file was added
touch a
svn add a
svn ci
# file was moved without versioning
mv a b
# file versioning is added
mv b a
svn mv a b
Keeping in mind you can't svn cp a b
, as svn
will outright refuse to copy to a target that exists unless it is a directory.
You can't only record it.
What you can do is to do the copy again and overwrite the old copy target.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With