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

[TSVN] Autocompletion list in the commit dialog

From: SteveKing <steveking_at_gmx.ch>
Date: 2005-02-13 12:02:38 CET

Hi guys,

As of revision 2659, TSVN now can parse all the files listed and checked
in the commit dialog for words to use in the autocompletion list. This
is a very handy feature when writing log messages since it helps you
refer to changed methods, class names, ...
The parsing of the files is done with regexes (that's why I needed a
regex lib, not just for the bugtracking integration). And here's where
you can help!

We need many good regex strings to parse as many filetypes as possible.
Currently, I have only a basic regex implemented for .h and .cpp files,
but there are many more files out there we can parse.

So here's how you can help:
- find a filetype/programming language you know well
- decide what of a typical file of that type you'd want in the
autocompletion list. Usually, you'd want method/function names, class
names, interface names. But maybe not variable names since then the
autocompletion list could get just too big!
- write a regex to parse for those strings
- test your regex on as many files you can find
- improve the regex and test again.
- test the whole thing with TSVN directly
- send us your regex string with the filetype you want it to apply to,
and maybe some testfiles too.

To help you with this task, there's a little tool to test your regex
strings on files located here:
http://tortoisesvn.tigris.org/files/documents/406/20668/RegExpTest.exe
Just enter your regex string and drag the files you want to test it with
over the dialog. The parsed strings will be listed at the bottom of the
dialog.

The autolist.txt file which TSVN uses to find out which regex to apply
to which filetype is located in the TSVN installation /bin folder. And
of course in our sourcetree:
https://svn.collab.net/repos/tortoisesvn/trunk/src/TortoiseSVNSetup/autolist.txt

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Sun Feb 13 12:03:17 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.