Subversion svn: redefining externals files?

I have a repository for one of my projects that has a nested repository using the property svn:externalsto update files from an external library. The problem is that I need to comment on one of the function declarations from one of the headers in this library and transfer the changed header with the root repository.

Can this be done so that when updating the library it will override this file with my version?

+3
source share
2 answers

What would you like, sounds like a vendor branch script for me.

current repository

root
|-- myproject
    |
    -- mycode
    |
    -- library -> svn:externals to a remote svn or your own libraryproject

proposed repository

root
|-- myproject
    |
    -- mycode
    |
    -- library -> copied/branched from ^/vendor/library/current (modified at this location as much as you like)

|
-- vendor
   |
   --library
     |
     --current
     |
     --imported-version-1.0
     |
     --imported-version-1.1

How to create a layout

^/vendor/library/current .

svn commit ^/vendor/library/current
svn cp ^/vendor/library/current ^/vendor/library/imported-version-1.0 (tag the import)
svn cp ^/vendor/library/current ^/myproject/library (branch the code into your project)

^/myproject/library


^/vendor/library/current OVERWRITING.

svn commit ^/vendor/library/current (checks in the difference between the two library releases)
svn cp ^/vendor/library/current ^/vendor/library/imported-version-1.1 (tag the change)
cd /your-local-workspace/myproject/library (will be merge target)
svn merge ^/vendor/library/current (get all CHANGES from the upstream branch and apply them to your modified library)
svn commit


, "" , "my-modified-libs" . , , .

, , . - - SVN.

, , :)

+7

, .

: , , . , , .

0

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


All Articles