Re: FindinFiles accross all file versions
- From: "Martin Rakhmanov" <jimmers@xxxxxx>
- Date: Fri, 23 Dec 2005 00:30:19 +0300
Thank you Alin.
Martin
"Alin Constantin [MSFT]" <cnila@xxxxxxxxxxxxx> wrote in message
news:OlkTs1zBGHA.532@xxxxxxxxxxxxxxxxxxxxxxx
> 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
>>
>
>
.
- References:
- FindinFiles accross all file versions
- From: Martin Rakhmanov
- Re: FindinFiles accross all file versions
- From: Alin Constantin [MSFT]
- FindinFiles accross all file versions
- Prev by Date: Re: FindinFiles accross all file versions
- Next by Date: Re: Unable to keep writable version of file in VSS 2005?
- Previous by thread: Re: FindinFiles accross all file versions
- Next by thread: VSS6 +.Net2005: tooo slow!!
- Index(es):
Relevant Pages
|
Loading