Re: FindinFiles accross all file versions
- From: "Alin Constantin [MSFT]" <cnila@xxxxxxxxxxxxx>
- Date: Thu, 22 Dec 2005 13:19:30 -0800
Hi Martin,
VSS's find in files does not allow searching in history.
(It will be too slow to reconstruct all versions of all files, then search
the string in each of them.)
However, you can take advantage on the file-based structure of the VSS
database.
Latest version of files in the VSS database are stored in files like
data\b\bdcfaaaa.a, while the diff history of that file is stored in a
similar file but without the extension.You can simply use findstr command
(or any other find-in-files tool of your choice) to search the files in the
database and identify the physical file containing the string.
e.g. findstr /s /i <My_function_name> [Vss_database]\data\*
Once you have identified the physical file (like bdcfaaaa) containing the
string, you can use the VSS command line to see which file in the VSS
database matches the physical file.
set SSDIR=[Vssdatabase]
ss.exe physical /R $/ > c:\temp\physical.txt
then look in the generated physical.txt which file and folder in the
database correspond to the bcdfaaaa physical file.
You can then use VSS History dialog to view/diff versions of that file until
you find the function of interest.
--
Alin Constantin
This posting is provided "AS IS" with no warranties, and confers no rights.
"Martin Rakhmanov" <jimmers@xxxxxx> wrote in message
news:OxhdLQlBGHA.3156@xxxxxxxxxxxxxxxxxxxxxxx
> Hello
>
> Is it possible to find string what appeared in some version of file and
> then was removed? I use VSS8 that comes with VS2005...
>
> Real-world example: I've added some function to existing file and some
> time later removed it. Now I need to find the function's body and the
> file. The only thing I remember is function name.
>
> Thank you
>
.
- Follow-Ups:
- Re: FindinFiles accross all file versions
- From: Martin Rakhmanov
- Re: FindinFiles accross all file versions
- References:
- FindinFiles accross all file versions
- From: Martin Rakhmanov
- FindinFiles accross all file versions
- Prev by Date: Re: Trying VSS 2005
- Next by Date: Re: FindinFiles accross all file versions
- Previous by thread: FindinFiles accross all file versions
- Next by thread: Re: FindinFiles accross all file versions
- Index(es):
Relevant Pages
|