I am being asked to troubleshoot an issue caused by incorrect use of subversion (as far as I can tell).
Here's the history, which has been marred by some time passing, user confusion, etc. but is the best I can figure out. The intended goal was to archive the file set at a given point in time (essentially to tag the repository but the user did not know this).
- user has a working directory checked out
- instead of creating a tag, the user copied files via unix copy commands (not SVN move or SVN copy) to a sub folder within their working copy.
- E.g. The working copy is /var/tmp/working, they copied files into var/tmp/working/todays_date
- the user noticed that some .svn directories were missing from this new directory, so they copied .svn folders from another directory (they're not sure where) into the directory with their "tag".
Is this the best way to fix it?
Thinking I'd try the following:
- recursively delete all .svn folders in their mistaken sub-directory
- copy the directory out of the repo locally
- check out a working directory before their last commit
- overwrite the new working directory's files with the "exported" files
- go through the normal update/commit process
- create a tag
Does this make sense or am I opening myself up to other issues?
Other Questions
- what is the best way it educate this user so they won't do it again?
Update: More information
Got the following from the user:
- I did the work, then attempted to do a svn add.
- I then did the svn commit which gave me some errors.
- At that point I moved the .svn files then it finally did the svn add and commit without errors
- However svn log does not show the log message for commit.
So it looks like the user copied .svn folders in an attempt to make a commit work, and then it apparently did add and commit, except we're not sure if it did because we can't find it in the log.