You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Garrick Olson <Ga...@Aceva.com> on 2004/01/16 00:39:18 UTC
Viewing "tags" for a file
If I am using "svn copy ..." to label releases, how do I find out which
releases contained a particular file?
I thought I would be able to see this using the "svn log" command, but
it doesn't seem to display this. Am I missing something simple?
Re: Viewing "tags" for a file
Posted by kf...@collab.net.
mark benedetto king <mb...@lowlatency.com> writes:
> This is not true. CVS is O(N) in the number of tags and branches.
> The constant factor is very small though.
What Mike is saying is accurate.
Mike's O() comments were about the number of files; yours are about
the number of tags/branches. Apples != Oranges :-).
In CVS, getting a list of all the tags and branches on a particular
file is O(1) w.r.t. both the total number of files in the repository
and the number of files on that tag/branch.
It is technically O(N) w.r.t. the number of tags/branches on that
file, but in an irrelevant way -- it's O(N) in the sense of how long
it would take to marshal a contiguous list of data from a file across
a network. This is O(N), but only in the trivial way that *every*
solution to this problem must be, in even the most efficient system.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Viewing "tags" for a file
Posted by mark benedetto king <mb...@lowlatency.com>.
On Fri, Jan 16, 2004 at 08:04:45AM -0600, C. Michael Pilato wrote:
> - To see a list of tags and branches that file belongs to in CVS is
> O(1). In Subversion, it's currently not possible (for a couple
> of reasons[1]), but would be something quite a bit > O(1) if it
> were.
>
This is not true. CVS is O(N) in the number of tags and branches.
The constant factor is very small though.
--ben
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Viewing "tags" for a file
Posted by kf...@collab.net.
Branko Čibej <br...@xbc.nu> writes:
> C. Michael Pilato wrote:
> > - we don't discriminate between branches and copies (which, despite
> > some of the opposing theory spouted on this list, really are
> > different version control operations),
> >
> Whoohoo, another ally! Only a few more, and there's a good chance that
> sometime in the future, svn will have "branch" and "tag" commands in
> addition to "copy" -- and not synonyms, either! :-)
Someday, I'll understand this :-).
{Mike, Brane, Sander Striker}, let's not forget to hash this out --
here -- after 1.0 is released.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Viewing "tags" for a file
Posted by Branko Čibej <br...@xbc.nu>.
C. Michael Pilato wrote:
> - we don't discriminate between branches and copies (which, despite
> some of the opposing theory spouted on this list, really are
> different version control operations),
>
Whoohoo, another ally! Only a few more, and there's a good chance that
sometime in the future, svn will have "branch" and "tag" commands in
addition to "copy" -- and not synonyms, either! :-)
--
Brane Čibej <br...@xbc.nu> http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Viewing "tags" for a file
Posted by "C. Michael Pilato" <cm...@collab.net>.
"Garrick Olson" <Ga...@Aceva.com> writes:
> If I am using "svn copy ..." to label releases, how do I find out which
> releases contained a particular file?
>
> I thought I would be able to see this using the "svn log" command, but
> it doesn't seem to display this. Am I missing something simple?
On the contrary -- you're desiring something quite complex in
Subversion. Subversion's filesystem is optimized with respect to tags
and branches in *exactly* the opposite direction from CVS.
- To make a tag or branch in CVS is an O(N) operation across all
the files included in the tag. In Subversion, it's O(1).
- To see a list of tags and branches that file belongs to in CVS is
O(1). In Subversion, it's currently not possible (for a couple
of reasons[1]), but would be something quite a bit > O(1) if it
were.
--C-Mike
[1] This operation isn't possible in Subversion for two main reasons:
- we can currently crawl version history of files only in a
backwards direction (youngest to oldest), and we need to be able
to also crawl forward.
- we don't discriminate between branches and copies (which, despite
some of the opposing theory spouted on this list, really are
different version control operations), so the answer you'd get
about a list of such things could contain false positives.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org