Export SVN Diff

At work, we have a very large code base, which we usually export for a web application so that everything is updated. If we develop test code, this is always done in the branch to make sure that it does not contradict the chest, which may unexpectedly cause an error.

My question is whether SVN can be exported, but only for differences, otherwise the entire repository must be exported again, which takes quite a lot of time. Say, for example, we had the “last exported” flag, then we compare the latest update dates with files and export only those that were later than the last export date.

This would be very convenient for inter / intranet systems where a full export is performed in order to synchronize our live / repo. Any ideas?

EDIT . Looking at the patch, I don’t see how you create the patch for files that already exist in the repo. We already have files. So I want to create a patch from the x-version to the head and apply it to the root of my project in order to apply every single difference. However, I am not sure if this is possible.

+3
source share
2 answers

We did something almost similar (albeit not with the production system) in using svn diff to create a patch file, and then applied this patch file using the usual old patch command. svn diff accepts revision numbers, so you can create a patch file that will include everything from a specific set.

Of course, this may not work as well if many of your files are binary :-)

+7
+1

Source: https://habr.com/ru/post/1705085/


All Articles