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

Re: Tag or branch name as label decoration

From: Brock Janiczak <brockj_eclipse_at_ihug.com.au>
Date: 2004-12-08 10:41:40 CET

Hi Mark

>What if we did something like the following:
>
>Search for "/tags/" in URL, if found display item immediately following
>If not found
> Search for "/branches/" in URL. if found display item immediately
>following
>If not found
> Search for "/trunk/" in URL. If found display "trunk".
>Otherwise, we could display the full URL, or the what you just did.
>

This sounds like a good idea. I think it is a separate variable to
short_url though. short_url is the URL relative to the root URL. This
would just display the tag/branch name (the segment after '/tags/' or
'/branches/').

I do have a small concern about searching for specific values. It would
work for 99% of cases. The SVN manual does suggest to use 'tags',
'branches' and 'trunk', but some non English language people may choose
to translate those into their native language. Has anyone set up their
repository in this way?

It should still be implemented, but we should just make it clear that it
requires a 'standard' repository layout to work.

Cheers,
    Brock
Received on Wed Dec 8 20:41:40 2004

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