This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH]: New script for contrib
On Monday 31 October 2005 20:14, Daniel Berlin wrote:
> > find-start-rev()
> > {
> > svn log --stop-on-copy $1 | egrep '^r[0-9]' | tail -n 1 | cut -d' ' -f1
> > }
>
> Yes, but svn log is going to take a lot longer on revisions with tons
> and tons of history.
Really? Did you try it?
find-start-rev()
{
svn log -q --stop-on-copy $1 | egrep '^r[0-9]' | tail -n 1 | cut -d' ' -f1
}
I'm using this on a repository with 490000 revisions on a branch that has
90000 commits. The non interative version above takes 4.89s wall clock time,
the script in your patch takes 2 minutes 11s.
Dirk