You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by bruce <be...@earthlink.net> on 2004/09/15 19:41:16 UTC

svn questions...

hi...

i understnad that svn doesn't have 'versions' per file, and instead, updates
the version number of everything as items are committed.. (not exactly sure
what this buys you, but ok..)

if i copy a file of a given version to a tag/dir, does the file inside the
tag dir also get bumped to have the new 'version number' as commits are made
to the svn?

here's why i'm asking. i'm trying to figure out a way to allow users to be
able to modify a file, and then be able to basiccaly say that version x of
the file is the valid one. i'd like to allow the user to scroll down through
a list of version numbers, and to select the 'correct/valid' version, but if
i have potentially 100s-1000s of files in my system, this could get to be a
serious pain to have to essentially look through 100s' of version numbers
for the right/valid version for the file.

am i missing something here..??

thanks for any comments/thoughts/etc...

-bruce



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

RE: svn questions...

Posted by bruce <be...@earthlink.net>.
much thanks!!!!!

looks like i'm going to be able to do what i'm looking to do!!!

thanks for your time/assistance. from time to time, i'll be back when i get
stuck/can't quite figure out how the svn cmds should work!!!

-bruce


-----Original Message-----
From: Jani Averbach [mailto:jaa@jaa.iki.fi]
Sent: Wednesday, September 15, 2004 1:53 PM
To: bruce
Cc: 'C. Michael Pilato'; users@subversion.tigris.org
Subject: Re: svn questions...


On 2004-09-15 13:45-0700, bruce wrote:
> mike....
>
> great...
> [root@lserver2 svn]# svn status -v /home/test/collegewcopy/svn/mytest/a.a
>                 3        2  ?
> /home/test/collegewcopy/svn/mytest/a.a
>
> gives me the partial results....
>
> however, i'm still confused, as to how i can actually get the version
> history of a single file...
>


svn log -q http://svn.collab.net/repos/svn/trunk/HACKING

------------------------------------------------------------------------
r10402 | ghudson | 2004-07-23 18:30:42 -0600 (Fri, 23 Jul 2004)
------------------------------------------------------------------------
r10355 | ghudson | 2004-07-19 11:09:46 -0600 (Mon, 19 Jul 2004)
------------------------------------------------------------------------
r10298 | kfogel | 2004-07-14 13:51:00 -0600 (Wed, 14 Jul 2004)
------------------------------------------------------------------------
r10264 | lundblad | 2004-07-13 13:26:28 -0600 (Tue, 13 Jul 2004)
------------------------------------------------------------------------
r10075 | kfogel | 2004-06-25 08:47:26 -0600 (Fri, 25 Jun 2004)
...

Is this what you are looking for?

BR, Jani

--
Jani Averbach


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

Re: svn questions...

Posted by Jani Averbach <ja...@jaa.iki.fi>.
On 2004-09-15 13:45-0700, bruce wrote:
> mike....
> 
> great...
> [root@lserver2 svn]# svn status -v /home/test/collegewcopy/svn/mytest/a.a
>                 3        2  ?
> /home/test/collegewcopy/svn/mytest/a.a
> 
> gives me the partial results....
> 
> however, i'm still confused, as to how i can actually get the version
> history of a single file...
> 


svn log -q http://svn.collab.net/repos/svn/trunk/HACKING

------------------------------------------------------------------------
r10402 | ghudson | 2004-07-23 18:30:42 -0600 (Fri, 23 Jul 2004)
------------------------------------------------------------------------
r10355 | ghudson | 2004-07-19 11:09:46 -0600 (Mon, 19 Jul 2004)
------------------------------------------------------------------------
r10298 | kfogel | 2004-07-14 13:51:00 -0600 (Wed, 14 Jul 2004)
------------------------------------------------------------------------
r10264 | lundblad | 2004-07-13 13:26:28 -0600 (Tue, 13 Jul 2004)
------------------------------------------------------------------------
r10075 | kfogel | 2004-06-25 08:47:26 -0600 (Fri, 25 Jun 2004)
...

Is this what you are looking for?

BR, Jani

-- 
Jani Averbach


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

RE: svn questions...

Posted by bruce <be...@earthlink.net>.
mike....

great...
[root@lserver2 svn]# svn status -v /home/test/collegewcopy/svn/mytest/a.a
                3        2  ?
/home/test/collegewcopy/svn/mytest/a.a

gives me the partial results....

however, i'm still confused, as to how i can actually get the version
history of a single file...

thanks...

-bruce


-----Original Message-----
From: cmpilato@localhost.localdomain
[mailto:cmpilato@localhost.localdomain]On Behalf Of C. Michael Pilato
Sent: Wednesday, September 15, 2004 1:18 PM
To: bedouglas@earthlink.net
Cc: users@subversion.tigris.org
Subject: Re: svn questions...


"bruce" <be...@earthlink.net> writes:

> so how does one get this 'committed rev'???

It's listed in 'svn status -v' and 'svn info -v', and the $Revision$
keyword expands to contain it.

> i can do svn list http://192.168.1.52:82/svn and get a list of information
>
> how do i use the svnlook...
>
> svnlook  http://192.168.1.52:82/svn/mytest/a.a doesn't seem to
> work??

Server-side application usually take repository paths, not URLs.  So
'svnlook history /usr/local/svn/mytest a.a' or something like that.


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

Re: svn questions...

Posted by "C. Michael Pilato" <cm...@collab.net>.
"bruce" <be...@earthlink.net> writes:

> so how does one get this 'committed rev'???

It's listed in 'svn status -v' and 'svn info -v', and the $Revision$
keyword expands to contain it.

> i can do svn list http://192.168.1.52:82/svn and get a list of information
> 
> how do i use the svnlook...
> 
> svnlook  http://192.168.1.52:82/svn/mytest/a.a doesn't seem to
> work??

Server-side application usually take repository paths, not URLs.  So
'svnlook history /usr/local/svn/mytest a.a' or something like that.

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

RE: svn questions...

Posted by bruce <be...@earthlink.net>.
so how does one get this 'committed rev'???

also,

i can do svn list http://192.168.1.52:82/svn and get a list of information

how do i use the svnlook...

svnlook  http://192.168.1.52:82/svn/mytest/a.a doesn't seem to work??

thanks

-bruce

-----Original Message-----
From: cmpilato@localhost.localdomain
[mailto:cmpilato@localhost.localdomain]On Behalf Of C. Michael Pilato
Sent: Wednesday, September 15, 2004 1:05 PM
To: bedouglas@earthlink.net
Cc: users@subversion.tigris.org
Subject: Re: svn questions...


"bruce" <be...@earthlink.net> writes:

> if i copy a file of a given version to a tag/dir, does the file inside the
> tag dir also get bumped to have the new 'version number' as commits are
made
> to the svn?

There is a global revision number which is bumped with all commits,
but then each resource has a "committed rev" which reflect the
revision in which *that resource* was last changed.  So as long as you
don't change the file inside the tag, that file's "committed rev" will
never change.

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


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

Re: svn questions...

Posted by "C. Michael Pilato" <cm...@collab.net>.
"bruce" <be...@earthlink.net> writes:

> if i copy a file of a given version to a tag/dir, does the file inside the
> tag dir also get bumped to have the new 'version number' as commits are made
> to the svn?

There is a global revision number which is bumped with all commits,
but then each resource has a "committed rev" which reflect the
revision in which *that resource* was last changed.  So as long as you
don't change the file inside the tag, that file's "committed rev" will
never change.

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