SVN library revert and update operations

Revert to this revision和Revert changes from this revision

For example, there are ten versions of a file , assuming the version numbers are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10.
Revert to this revision: If you click "Revert to this revision" in version 6, it means that all revisions from 7 to 10 are invalid, and the history goes back to the era of version 6.
Revert changes from this revision: If you click "Revert changes from this revision" in version 6, it means that the historical event of version 6 has been erased, leaving only 9 historical events except version 6.
If I select the three historical periods 6, 7, and 8 at the same time and click "Revert changes from this revision", it means that the three historical periods 6~8 will be erased.
Similarly, if you select 7~10 at the same time, and then click "Revert changes from this revision", the effect is the same as clicking "Revert to this revision" in version 6.

 

Revert to this revision和Update Item to revision

update means to update, revert means to revoke.

Updating to a version means getting a specific version of the repository into the working copy. It should be noted that if you make changes on the above, then you are making changes based on the old version. When you submit, SVN will prompt you that your current working copy version has expired (that is, not based on the latest version of the repository. to make changes), at this time you must first update to the latest version.

This function is generally used to obtain a read-only copy. For example, you have a project that uses a certain version of the dll . One day someone modified the dll and submitted it, and then you found that the compilation failed when you updated to the latest version . , at this time, if you want to use the old version temporarily, then you can use the update to this revision function.

The revert function is mainly used to roll back the version library. When you find that a certain version of the file is not very good and want to restore it to a specific version, you can use this function.

Select Revert to this revision, at this time, the file in your working copy will be rolled back to this version (equivalent to your constant ctrl-z revocation on the latest version, and the version number is still the latest version number, and then you do The modifications are still equivalent to the modifications made based on the latest version ), and then you can make modifications on this version, and then submit. Or you can submit it directly. Note: Rollback is only to roll back the working copy to a certain version, not to update the repository. Only when you re-submit the repository after the rollback will it be updated. When someone else updates again , they can get the version you rolled back.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326525566&siteId=291194637