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

When did a file last change?

From: Jim Blandy <jimb_at_red-bean.com>
Date: 2002-07-26 19:39:18 CEST

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
Received on Fri Jul 26 19:39:47 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.