Re: FindinFiles accross all file versions



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
>>
>
>


.



Relevant Pages

  • Re: FindinFiles accross all file versions
    ... VSS's find in files does not allow searching in history. ... you can take advantage on the file-based structure of the VSS ... Latest version of files in the VSS database are stored in files like ... database and identify the physical file containing the string. ...
    (microsoft.public.vstudio.sourcesafe)
  • Re: Automation Question - How to Search VSS files?
    ... for each file in the database like $/folder/file.txt VSS ... physical file names and the database file paths. ... "Sharan" wrote in message ...
    (microsoft.public.vstudio.sourcesafe)
  • Re: Developing with VS2005 over a WAN
    ... I've been using the same database since 2003 and even migrated it to a new server. ... VSS doesn't do atomic checkins. ... In Perforce, deleting/renaming a file from the depot means that the ...
    (microsoft.public.vsnet.general)
  • Re: UDM and Star Schema
    ... For all I know SQLServer 2005 Analysis Service's proactive caching is good for direct connection with the relational database, and it does a good job in balancing performance with near real time data. ... historical partitions generally are stored in MOLAP mode, because you don't update them frequently. ... generally doing analysis against the history will not answer the same questions as the real time access. ...
    (microsoft.public.sqlserver.datawarehouse)
  • Re: VSS 2005 BUG? Check-in unchanged files.
    ... > update the file in the working directory. ... > B wants to synchronize with database. ... VSS does not update database at this> time, ...
    (microsoft.public.vstudio.sourcesafe)

Loading