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

Re: reviving a file from the repository depths? [SOLVED]

From: Will Partain <will.partain_at_verilab.com>
Date: 2005-12-14 12:09:33 CET

I asked:

>> Use case: I know a particular SVN repository used to include a file
>> named (say) *roundup-config* (i.e. "roundup-config" was in there
>> somewhere). It's long since deleted. What is the elegant way to find
>> it? (i.e. not "run emacs on a dump of the repository" :-) Thanks,
>> Will

Phillip Susi replied (thanks, Philip), beginning:

> Scan the output of svn log for the file in question. ...

A recipe is, then:

  cd <a-relevant-working-copy>
  svn log -v -q | grep -E '(roundup-config|^r[0-9])' | grep -C 1 roundup-config

From this, I identify that r175 (say) was the last interesting commit
of the file I want (which turns out to be trunk/package/roundup-config.xml)

Then, as Phillip suggests, just 'svn cat' the desired bits; something
like:

  svn cat file:///repos/svn/foo-bar/trunk/package/roundup-config.xml_at_175

Will

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Dec 14 12:12:05 2005

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.