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

Re: Problem with subversion tags

From: Joerg Hessdoerfer <Joerg.Hessdoerfer_at_sea-gmbh.com>
Date: 2006-10-09 18:43:13 CEST

Hi,

On Monday 09 October 2006 12:40, Tanoor Dieng wrote:
> Hi every body,
> I've installed subversion to try it because it offers many features that
> cvs don't.
> While I'm very satisfied by those features, i can't find others that exist
> in cvs and that were essential to me.
>
> For example, in my firm we (developers) used to use cvs like that:
> - On one side we have the repository.
> - On the other side every one has it working copy.
>
> Commits and updates are done frequently and we communicate a lot so that
> conflicts don't often appear and when they appear we solve them manually.
> When we have decided that a file is stable we tag it like that:
> cvs tag -F STABLE myfile.
>
> When we want to publish a new version, a script will get a working copy
> composed by files with 'STABLE' tag.
> In this way, we can continue to work on our files while we are sure that
> only files with STABLE tag are put in production.
>

Well, could create a stable branch in your repository, and update the files
via svn cp commands. See the transscript for explanation:

===============
joe@freya:~/test$ svnadmin create testrep
joe_at_freya:~/test$ svn co file:///home/joe/test/testrep testwc
Checked out revision 0.
joe@freya:~/test$ cd testwc/
joe@freya:~/test/testwc$ mkdir trunk stable
joe@freya:~/test/testwc$ svn add trunk stable
A trunk
A stable
joe@freya:~/test/testwc$ svn -m 'creating branches' ci
Adding stable
Adding trunk

Committed revision 1.
joe@freya:~/test/testwc$ cd trunk
joe@freya:~/test/testwc/trunk$ touch file1
joe@freya:~/test/testwc/trunk$ svn add file1
A file1
joe@freya:~/test/testwc/trunk$ svn -m 'generating file 1' ci
Adding trunk/file1
Transmitting file data .
Committed revision 2.
joe@freya:~/test/testwc/trunk$ svn cp file1 ../stable/
A ../stable/file1
joe@freya:~/test/testwc/trunk$ svn -m 'copying file to stable folder' ci
../stable/ Adding stable/file1

Committed revision 3.
joe@freya:~/test/testwc/trunk$ echo x>file1
joe@freya:~/test/testwc/trunk$ svn -m 'updating file 1' ci
Sending trunk/file1
Transmitting file data .
Committed revision 4.

joe@freya:~/test/testwc/trunk$ svn rm ../stable/file1
D ../stable/file1
joe@freya:~/test/testwc/trunk$ svn cp file1 ../stable/
A ../stable/file1
joe@freya:~/test/testwc/trunk$ svn -m 'updating file in stable folder' ci
../stable/ Replacing stable/file1

Committed revision 5.
================

This should work fine, and come very close to what you do with CVS.

Greetings,
        Jörg

-- 
S.E.A. Datentechnik GmbH
Jörg Heßdörfer, Leiter Softwareentwicklung
Linder Höhe
51147 Köln
Tel.: +49-2203-98007-0
Fax.: +49-2203-98007-14
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Oct 9 18:43:54 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.