Problem (updated)
1. How can I replace the old version source code with new version?
I used TortoiseSVN to create a svn folder called svn://svn.domainname/program/android and uploaded these source code:
- source code of an Android project
- source code of a supporting library
The local path (in my Mac) of the uploaded files is:
~/svn_android/,
and the local path (in my Mac) of my Eclipse workspace is:
~/dev/android/workspace/.
After making some changes to my project in ~/dev/android/workspace/, I want to commit the new version to svn, but it doesn't work by just deleting all files in ~/svn_android/ and copying new version code from ~/dev/android/workspace/ to ~/svn_android/ and committing them.
Updated:
There are many newly created files and many modified files, so I don't know what can I do except deleting all of them (except the ~/svn_android/.svn folder) and copy-and-pasting into the folder with all of the current version source code.
2. Should I upload the metadata of Eclipse IDE?
Eclipse is used as IDE for the project. Not sure whether the metadata used in Eclipse has been uploaded in this process. The metadata folder/file is listed here:
~/dev/android/workspace/.metadata(folder)~/dev/android/workspace/.DS_Store(folder)~/dev/android/workspace/myproject/.metadata(folder)~/dev/android/workspace/myproject/.settings(folder)~/dev/android/workspace/myproject/.classpath(file)~/dev/android/workspace/myproject/.DS_Store(file)~/dev/android/workspace/myproject/.gitignore(file)~/dev/android/workspace/myproject/.project(file)
~/svn_android/. I don't know about OSX, but in Linux and Windows, there usually will be SVN meta data folder at~/svn_android/.svn/. So, keep the.svnand delete other files, then copy new files from~/dev/android/workspace/. That should work. - ozbek.project,.classpathfiles (see above updated post for the whole list of those meta files) - George