Re: FindinFiles accross all file versions



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 ... > the database and identify the physical file containing the string. ...
    (microsoft.public.vstudio.sourcesafe)
  • Re: VB.Net and SourceSafeTypeLib
    ... Please select another database. ... > I am running VS 2003 and VSS 6.0. ... > public string OpenDB(string UserName, string PassWord, string Path) ...
    (microsoft.public.vstudio.sourcesafe)
  • Re: A little Rolodex [revised]
    ... including alpha sort and searching for any embedded string, ... In this application, a database is a directory, ... you may optionally provide any alternate UCASE program, ... NN -> first store NN as key length ...
    (comp.sys.hp48)
  • Re: return multiple rows from sql statement
    ... strings from input values is almost certainly a safe path to SQL ... Also, being a MySQL function, it knows what MySQL needs or uses. ... All characters that are entered in the fields make their way into the database unaltered. ... The insert of what surprisinlgly was NOT a syntax error, but a string called "mysql_insert_id" into an integer field resulted in the value zero being put in. ...
    (comp.lang.php)
  • Re: Code to delete/unlink Linked tables
    ... Public intLinkODBCTables As Variant, intLinkDB2Tables As Variant ... Public strLinkBackendDB As String, strLinkDSNname As String, strLinkLibName ... ' MsgBox "This database is in MDE format...I will delete/recreate ODBC ... Public Sub fncLinkDB2Table() ...
    (microsoft.public.access.modulesdaovba)