[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

feature suggestion: adressing the repo relative to working copy url

From: Harald Kirsch <harald.kirsch_at_raytion.com>
Date: Tue, 21 Feb 2017 12:35:11 +0100

Hi all,

as suggested by Johan, I dare to drop a feature suggestion onto this
mailing list.

In a multi project repository, ^/trunk and ^/branches do not usually
point to the trunk and branches of a project. Rather something like


is needed.

Given a working copy of ^/somedir/someproject/trunk, it would be great
to address the repository relative to that URL. Say '%' would be the
shortcut, then I could

svn list %/../branches
svn copy . %/../branches/mycoolfeature
svn switch . %/../branches/mycoolfeature
svn merge %/../../trunk

Use of '..' seems to be forbidden in repository URLs, but some syntax
should be possible to address this. %% for %/.. and %%% for %/../.. is
one thing that springs to mind, surely others can come up with even
better suggestions.


The sequence of commands shown above motivated me to suggest this
feature. Branching and merging would get much easier for multi-project
repositories, where ^ does not easily lead to trunk and branches.

Alternative Idea:

If trunk/tags/versions/branches where not just conventions, an
alternative would be to have a notation point to the "root of the
project", i.e. the parent of trunk and branches. But I would not know
how to sanely define it for working copies that have neither of
trunk/branches/tags/versions in their repository path's ancestry.

Received on 2017-02-21 12:35:28 CET

This is an archived mail posted to the Subversion Dev mailing list.