subclipse - SVN - Update complete local copy to HEAD Version -


In the current revision of the team repository, someone in my team, "mistake" to remove several files, Is it possible to update to revision? When I click on the commit, subclipse does not recognize the missing files for uploading them.

Thanks in advance, RAIT

Oh, for the love of Pete! Its answers are far too good - confusing.

From your question, it seems that you were trying to do something like this:

  svn update -r8 # OK, now see the deleted file Svn commit -m "I want the r8 to be the latest"  

except that there is no modification to commit that it will not work. You can update the old amendments, but you can not change it there. You can not change the past You can only make a new amendment, can undo the damage.

OK, let's assume that your repository is on svn: // repo. Here, a simple example where the folder trunk contains two files, "a", and "b" we call this amendment 8 (r8).

  trunk # svn: // repo / trunk ab  

The JR hacker moves up, and accidentally removes B:

< Pre> svn rm b svn commit -m "oops"

Let's call the resulting r9.

Therefore, the next time you update from the repository,

  svn update trunk one  

b disappears! Terror? No. This is a version control system. Whatever is checked, it can be restored. Here are two possibilities:

Just make the copy from an old revision, i.e. the last revision where it still exists: 8.

Strong> merge You can use this technique only to undo a fugitive removal.

  svn merge -r9: 8. The method of reading this merge is:  

The first thing to know is what changes should be made to get the repository folder (SVN: // repo / trunk related to the current directory (formerly ".") ) K R9 (back) to r8 Now, complete those changes in a working copy in the current directory (the second ".").

If you are withdrawing a single change then there is a more convenient syntax:

  svn merge -C-8 Note the zero mark before # 8  

If you are not using svn from the command line, then press a bit around your device, you have to find out something. For example, TorrentiaSVN, when you open a log from a functional copy, it is easy to "Revert changes with this modification".


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -