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

Re: When did a file last change?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2002-07-26 19:44:16 CEST

Yes, it's in the status output, already cached in the entries file.

Try 'svn st -v', and 'svn help st'.

Alternately, 'svn diff -rPREV' will show you the last change to the
file. :-)

Jim Blandy <jimb@red-bean.com> writes:

> Is there any reliable way to find the revision number at which a file
> was last changed?
>
> One command that Emacs's VC package provides is vc-diff (C-x v =).
> Normally, vc-diff shows you your uncommitted changes. But you can
> also invoke in a way that lets you get a diff between arbitrary
> revisions of the file. It prompts you for the "from" and "to"
> revisions. These are supposed to default to immediately before and
> immediately after the last time the file was changes, so it's trivial
> to see the last thing that happened to a given file.
>
> Under CVS, if you've got a file at 1.38, say, then you know its
> immediate predecessor is 1.37. But since Subversion uses global
> revision numbers, it's not so easy. A file may be at revision '1093',
> but you have no idea what revision it last changed in.
>
> Does the working copy have this info? Is there some straightforward
> way to get it?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jul 26 19:45:54 2002

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.