You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Files <fi...@poetryunlimited.com> on 2003/10/21 22:34:24 UTC
Re: Subversion Revision Numbers driving me Batty. What about a
SECOND revision number?
Robert Simmons said:
> a file has the version 105. Now I know damn well that file has been
> changed
> perhaps a grand total of 10 times but my version system tells me 105
> times.
I vote for encapsulating the following into the tools directory as script
that can be hooked onto via svn command line switch (not sure how to
effect it) or as a standalone svn_file_rev - not sure how well it would
work under windows. YMMV.
svn log "$1" | egrep "^rev [0-9]*:" | wc -l | sed 's/^ *//g'
+1
$0.02
Cheers
--
Shamim Islam
BA BS
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Subversion Revision Numbers driving me Batty. What about a SECOND revision number?
Posted by Ben Collins-Sussman <su...@collab.net>.
"Robert Simmons" <de...@arcor.de> writes:
> I'm gonna beat this guy to death with a regular expressions manual. =) JK
>
> I dont see what the big deal is about file versions. I know some
> people wouldnt use them. Others would. Life with variety is soo
> cool.
You're not crazy for wanting per-file revisions.
We even have a theoretical issue (still being discussed, tentatively
slated for svn 1.1) that would add this concept. Go look at issue
#1525.
We hear you -- or at least I hear you. But now I'm asking you to
listen to me: per-file revision numbers are a vestige of CVS
thinking. You do NOT need them to function. Run 'svn log foo.c' to
see the entire history of foo.c Run 'svn diff -rPREV:COMMITTED foo.c'
to see the last change made to the file.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Subversion Revision Numbers driving me Batty. What about a SECOND revision number?
Posted by Robert Simmons <de...@arcor.de>.
I'm gonna beat this guy to death with a regular expressions manual. =) JK
I dont see what the big deal is about file versions. I know some people wouldnt
use them. Others would. Life with variety is soo cool.
-- Kraythe
"Files" <fi...@poetryunlimited.com> wrote in message
news:18141.167.242.48.41.1066775664.squirrel@squirrel.poetryunlimited.com...
> Robert Simmons said:
> > a file has the version 105. Now I know damn well that file has been
> > changed
> > perhaps a grand total of 10 times but my version system tells me 105
> > times.
>
> I vote for encapsulating the following into the tools directory as script
> that can be hooked onto via svn command line switch (not sure how to
> effect it) or as a standalone svn_file_rev - not sure how well it would
> work under windows. YMMV.
>
> svn log "$1" | egrep "^rev [0-9]*:" | wc -l | sed 's/^ *//g'
>
> +1
>
> $0.02
>
> Cheers
>
> --
> Shamim Islam
> BA BS
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org