You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Martin Stettner <ma...@complement.at> on 2004/05/04 23:03:52 UTC

Enhanced Project/Tag/Branch management

Hi,

I've just installed subversion and I think it's a really great tool, so I
first want to thank all developers for it!

I have a suggestion for the svn client which would IMHO make
project/tag/branch management a little more comfortable. One could define a
(client side) project configuration file which defines shorthands for
Subversion URLS along with standard trunc/tag/branch paths. It could look
like

------------------------
[project1]
URL = svn://myhost/some/path
default = trunc
tags = tags
branches = branches
... (More project definitions)
-------------------------

Using this file, the svn tool could easily do some URL rewrites such as

svn co project1                instead of  svn co
svn://myhost/some/path/trunc project1
svn co project1/somedir        instead of  svn co
svn://myhost/some/path/trunc/somedir project1/somedir
svn co project1##sometag       instead of  svn co
svn://myhost/some/path/tags/sometag project1
svn co project1::somebranch    instead of  svn co
svn://myhost/some/path/branches/somebranch project1
svn co project1##sometag/somedir instead of  svn co
svn://myhost/some/path/tags/sometag/somedir project1/somedir
svn cp . ##sometag             instead of  svn cp .
svn://myhost/some/path/tags/sometag

and so on. Of course the concrete syntax of how to specify
projects/tags/branches may need some additional thoughts (one could also
introduce some new command line switches -t/-b for specifying tags or
branches), but I hope the idea is clear.

I wonder if anyone else finds this addition useful.

greetings
Martin Stettner


begin 666 Martin Stettner (martin.stettner@complement.at).vcf
M0D5'24XZ5D-!4D0-"E9%4E-)3TXZ,BXQ#0I..E-T971T;F5R.TUA<G1I;@T*
M1DXZ36%R=&EN(%-T971T;F5R("AM87)T:6XN<W1E='1N97) 8V]M<&QE;65N
M="YA="D-"D]21SI+]FYI9R F(%-T971T;F5R($]%1PT*5$E43$4Z1V5S8VCD
M9G1S9OQH<F5R#0I414P[5T]22SM63TE#13HK-#,@*# I(#8Y.2 Q(#(X-B U
M.2 T. T*5$5,.U=/4DL[1D%8.BLT,R H,"D@,S$V(#,R(#8S(#8U#0I!1%([
M5T]22SH[.U-P87)B97)S8F%C:&=A<W-E(#0Y.T=R87H[.S@P,3 -"DQ!0D5,
M.U=/4DL[14Y#3T1)3D<]455/5$5$+5!224Y404),13I3<&%R8F5R<V)A8VAG
M87-S92 T.3TP1#TP04=R87H@.# Q, T*14U!24P[4%)%1CM)3E1%4DY%5#IM
M87)T:6XN<W1E='1N97) 8V]M<&QE;65N="YA= T*4D56.C(P,#,P-S,Q5#(P
2,SDU-5H-"D5.1#I60T%21 T*
`
end


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Enhanced Project/Tag/Branch management

Posted by Ulrich Eckhardt <ec...@satorlaser.com>.
Martin Stettner wrote:
> I have a suggestion for the svn client which would IMHO make
> project/tag/branch management a little more comfortable. One could define a
> (client side) project configuration file which defines shorthands for
> Subversion URLS along with standard trunc/tag/branch paths. It could look
> like
> ------------------------
> [project1]
> URL = svn://myhost/some/path
> default = trunc
> tags = tags
> branches = branches
> -------------------------
>
> Using this file, the svn tool could easily do some URL rewrites such as
>
> svn co project1                instead of  svn co
> svn://myhost/some/path/trunc project1
> svn co project1/somedir        instead of  svn co
> svn://myhost/some/path/trunc/somedir project1/somedir
> svn co project1##sometag       instead of  svn co
> svn://myhost/some/path/tags/sometag project1

Interesting, but I'd disagree. My personal taste is that the svn client should 
remain as simple as possible/useful. One reason is that it pins others to 
_your_ prj/branch/tag style of doing things.

However, consider a SVN shell like this:

#!/bin/sh
repo = ""
while read cmd args; do
  case cmd in
    cd)
      # change dir
      cd args
      ;;
    co)
      # checkout
      svn co repo$args
      ;;
    co)
      # checkin
      svn ci repo$args
      ;;
    open)
      # set repository URL
      repo = args
      ;;
  esac
done

I used something like that for Debian's apt-get/apt-cache and found it quite 
useful. Also, it extends without intruding into existing programs, which is a 
Good Thing(tm).

Uli


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org