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

Re: Revision number for project

From: Ryan Schmidt <subversion-2008c_at_ryandesign.com>
Date: Wed, 13 Aug 2008 15:09:10 -0500

On Aug 13, 2008, at 07:34, Kirti wrote:

> I am new to subversion. I have project in repository called portal. We
> generally build portal.jar and deploy it to live.
> So individual files inside portal project have revison number.
> Now I want to achieve 2 things.
>
> 1. I want to delete 2 files from portal project for new
> deployment , while
> these files are still there in old version

Go right ahead. "svn rm file1 file2" and then "svn commit -m
'removing file1 and file2'". The files will still be in the
repository's history. Subversion is deliberately designed to make it
very difficult to permanently delete things.

> 2. I want to give revison number to portal project itself so
> everytime we
> perform changes, portal.jar has new revison number.(e.g
> portal.jar1.2 ,
> portal.jar1.3)
>
> Problem is that I don't know how to acive it. Any suggestions/help
> will be
> appreciated.

Subversion does not have a facility to automatically rename files
when you make changes to them. If you want that behavior, you'll have
to remember to do it manually, or write a script to do so.

In CVS, files have revision numbers which are in dotted number format
(1.2, 1.3.2.1, etc.). But in Subversion, files do not have revision
numbers. Rather, the repository as a whole has a revision number, and
it is an integer. So you cannot say things like "revision 1.2 of
portal.jar." Instead you say things like "portal.jar as it existed in
revision 53 of the repository."

Please read the Subversion book:

http://svnbook.red-bean.com/en/1.4/index.html

Especially the section for people migrating from CVS:

http://svnbook.red-bean.com/en/1.4/svn.forcvs.html

Especially the section "Revision numbers are different now":

http://svnbook.red-bean.com/en/1.4/svn.forcvs.revnums.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-08-13 22:09:49 CEST

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.