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

Re: Subversion Revision Numbers driving me Batty. What about a SECOND revision number?

From: Files <files_at_poetryunlimited.com>
Date: 2003-10-22 00:34:24 CEST

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
Received on Wed Oct 22 00:35:52 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.