“Build Custom ChangeLog” with advanced GUI committed (preview)
Posted by tier777 on 2005-09-12
Here’s what you’ll most likely get with WinCvs 2.0.3 (not scheduled for release yet):
If you want to try it out now (it also works with WinCvs 188.8.131.52 as long as you don’t try to use the non-Tk version of the Custom ChangeLog macro), here’s what you’ll need to checkout/download from the CVSGUI repository:
- cvsgui/Macros/cvs2cl.py rev. 1.20 or later
- cvsgui/Macros/cvs2clTk.py rev. 1.2 or later
- cvsgui/PythonLib/cvsgui/SafeTk.py rev. 1.6 or later
(note that the ViewCvs server usually lags behind a few hours – if the revisions given above are not there yet, just try again a little later or, if you have developer access, just get them via SSH)
SafeTk.py now also contains a set of generic base classes that could be used to build Tkinter-based WinCvs macros with advanced GUIs. I will probably write up a little post about how to use this when I get some time. For now, just take a look at the above Build Custom ChangeLog macro (i.e. cvs2clTk.py) which was already built from those classes.
Another thing that I’m rather fond of in this new macro is that it works by invoking another macro. This was to separate the GUI from the actual functionality, especially considering that cvs2cl.py also works as a standalone command line tool. A rather handy concept, I found. There are a few gotchas though. More on that also later (hopefully).