You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Chetan <ch...@gmail.com> on 2008/09/11 11:57:16 UTC

Renumbering revision number

Hello there,

I am a new user to subversion and trying to configure subverion to my
project.
When I am trying to create remote folder (one for every application) i found
the revision number keep increase.
I want renumber the revision number so that all the applications with in the
project have the same number.

Can someone please help me out with this.

Can you please let know how I can do decimal increments for version of file
inside the application.

Thanks.
-- 
Cheers,
Chetan

Re: Renumbering revision number

Posted by Andy Levy <an...@gmail.com>.
On Thu, Sep 11, 2008 at 07:57, Chetan <ch...@gmail.com> wrote:
> Hello there,
>
> I am a new user to subversion and trying to configure subverion to my
> project.
> When I am trying to create remote folder (one for every application) i found
> the revision number keep increase.
> I want renumber the revision number so that all the applications with in the
> project have the same number.

The revision number in Subversion is global. Think of it as a
timestamp or a marker for a point in time.

http://subversion.tigris.org/faq.html#globalrev

> Can you please let know how I can do decimal increments for version of file
> inside the application.

Subversion only has integer revision numbers.

If you require that each application have its own revision numbering,
you'll need a separate repository for each.

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

Re: Renumbering revision number

Posted by Kevin Grover <ke...@kevingrover.net>.
On Thu, Sep 11, 2008 at 4:57 AM, Chetan <ch...@gmail.com> wrote:
> Hello there,
>
> I am a new user to subversion and trying to configure subverion to my
> project.
> When I am trying to create remote folder (one for every application) i found
> the revision number keep increase.
> I want renumber the revision number so that all the applications with in the
> project have the same number.
>
> Can someone please help me out with this.
>
> Can you please let know how I can do decimal increments for version of file
> inside the application.
>
> Thanks.
> --
> Cheers,
> Chetan

Subversion revision numbers are automatic and grow with each commit.

If you want all the of any given items (dirs, files, properties) to be
part of the same revision, you must commit them all at one.  Instead
of using a remote command to create each directory (one at a time,
which is one commit per command), check out that directory as a
working copy, mkdir your directories, svn add them, then commit them
all in one atomic commit.

- Kevin

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

Re: Renumbering revision number

Posted by prakash tiwary <pr...@gmail.com>.
Chetan,
  Subversion is having global revision number & also a directory addition is
a transaction under SVN (not like CVS). Hence , when you try to add folder ,
revision number get increase.
 I guess, creating a different repository will help you out.

No! you can't do decimal increments for version of file .

Regards,
Prakash


On Thu, Sep 11, 2008 at 5:27 PM, Chetan <ch...@gmail.com> wrote:

> Hello there,
>
> I am a new user to subversion and trying to configure subverion to my
> project.
> When I am trying to create remote folder (one for every application) i
> found the revision number keep increase.
> I want renumber the revision number so that all the applications with in
> the project have the same number.
>
> Can someone please help me out with this.
>
> Can you please let know how I can do decimal increments for version of file
> inside the application.
>
> Thanks.
> --
> Cheers,
> Chetan
>

Re: Renumbering revision number

Posted by David Weintraub <qa...@gmail.com>.
As people already mentioned: Revision numbers in Subversion are not
under your control. If multiple projects share the same repository,
checking in one file in project "A" will affect revision numbering in
project "B".

You can create tags to mark particular revisions of a set of files,
and tags can be done how ever you feel like. My only complaint is that
mapping the particular revision number to a particular tag is not
trivial to do (for example, I "tag" revision 1234 of
svn://localhost/proj/trunk" to svn://localhost/proj/tags/REL-1.0.
There's no quick way of knowing what revision REL-1.0 is in
relationship to trunk). Then again, it isn't particularly difficult to
do with a short program script either.

--
David Weintraub
qazwart@gmail.com



On Thu, Sep 11, 2008 at 7:57 AM, Chetan <ch...@gmail.com> wrote:
> Hello there,
>
> I am a new user to subversion and trying to configure subverion to my
> project.
> When I am trying to create remote folder (one for every application) i found
> the revision number keep increase.
> I want renumber the revision number so that all the applications with in the
> project have the same number.
>
> Can someone please help me out with this.
>
> Can you please let know how I can do decimal increments for version of file
> inside the application.
>
> Thanks.
> --
> Cheers,
> Chetan

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