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

Re: best way to get "Last Changed Rev:" without a checkout

From: Daniel Schlyder <daniel_at_bitblaze.com>
Date: 2003-12-17 04:22:13 CET

[16.12.2003 21:57:34] Yount, Steffen:
> I tried:
> svn log -strict -incremental TAG_URL

> "strict" doesn't seem to be in svn's vocabulary any more(v0.34.0), and none
> of the options remove those "---------" characters. Maybe this is a bug?

Sorry, my mistake, I meant to write

    svn log --strict --incremental TAG_URL

Ie. "--" instead of '-'. Only the line of '-' characters after the log message
is removed. (An insignificant detail, really.) The below is indeed better when
you're running 0.34.0. (I was/am using 0.32.1 which doesn't have the
--stop-on-copy switch.)

> The following seemed to work better:
> svn log -q --stop-on-copy TAG_URL

> Though the log output is a bit harder to use from my scripts since the
> revision number gets an 'r' appended to it which I have to remove.

A simple regexp like "/r(\d+)/" should do the trick.

> I also tried:
> svn ls -v TAG_DIR_URL

> The output is friendlier; it's just too bad there's no way to simply "svn
> ls" the TAG_URL itself without getting its contents.

But wouldn't its behaviour then be weirdly different from the "regular" ls
utility? Better if "svn info" supported URLs. BTW, as "svn ls" works today, I
don't think using it solves the same problem. If you've got hundreds of tags,
then that's a lot of wasted bytes to transfer just to get one revision number.
(Then again, in the big picture, it's probably still an insignificant amount.
:))

Regards,
Daniel Schlyder

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Dec 17 04:23:00 2003

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

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