Reverting a full project to a specific revision
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi,
I'm trying to use the built-in SVN to revert a full project (folder and subfolders) to a specific revision. Right clicking a file, choosing "source control" and then "Revert using SVN" brings up the SVN log that enables choosing a specific revision and Revert. Can this be done for a full project?
Thanks
댓글 수: 0
답변 (1개)
Divyam
2024년 10월 14일
You can try leveraging the terminal for this purpose. First navigate to the root of your project
cd <path to root of the project>
If you have the revision number of the version you wish to return to, use the "svn merge" command to revert to this revision version
% The "." reverts all the files to that specific revision number
svn merge -r HEAD:REVISION_NUMBER .
Commit the changes to the repository to finalize the revert
svn commit -m <Commit Message>
If you wish to use the MATLAB GUI to revert the changes, refer to the following documentation: https://www.mathworks.com/help/matlab/matlab_prog/work-with-files-under-svn-in-matlab.html#:~:text=and%20Revision.-,Commit%20or%20Revert%20Changes%20to%20Modified%20Files%20under%20SVN%20Source%20Control,-Before%20you%20commit
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Search Path에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!