Is it possible to specify an external to the same repository?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Is it possible to specify an external to the same repository?

David Aldrich-3
Hi

In our embedded projects we have a register interface maintained by our HW team and software that uses that register interface maintained by our SW team.  As the interface is constantly changing, we want the software source files to reference a fixed version of the interface.

In some projects the register interface and software are in separate repositories. So the software simply references the register interface using an svn external with fixed revision number.

In other projects the register interface and software are in the same repository.  It is inconvenient to instruct all developers and users to peg specific revisions of the register interface within their working copies.  Can we use externals in this situation, or is there another solution?

Best regards

David

Reply | Threaded
Open this post in threaded view
|

Re: Is it possible to specify an external to the same repository?

Branko Čibej
On 05.02.2019 12:26, David Aldrich wrote:

> Hi
>
> In our embedded projects we have a register interface maintained by
> our HW team and software that uses that register interface maintained
> by our SW team.  As the interface is constantly changing, we want the
> software source files to reference a fixed version of the interface.
>
> In some projects the register interface and software are in separate
> repositories. So the software simply references the register interface
> using an svn external with fixed revision number.
>
> In other projects the register interface and software are in the same
> repository.  It is inconvenient to instruct all developers and users
> to peg specific revisions of the register interface within their
> working copies.  Can we use externals in this situation, or is there
> another solution?

Of course you can use externals that point to the same repository. Even
better, you can use 'relative' externals for such cases. See:

http://svnbook.red-bean.com/nightly/en/svn.advanced.externals.html

-- Brane

Reply | Threaded
Open this post in threaded view
|

Re: Is it possible to specify an external to the same repository?

David Aldrich-3
In reply to this post by David Aldrich-3
> Of course you can use externals that point to the same repository. Even better, you can use 'relative' externals for such cases. 

Thanks for your answer.