bl.OGware

infrequent grumblings of a software engineer and then some… (also some Delphi programming)

Posts Tagged ‘cvsgui-macros’

“Undo Add” macro available.

Posted by tier777 on 2005-11-04

Inspired by another recent thread on the CVSGUI list, I just wrote this little macro:

AddUndo.py

From the comment header (give SF.net a few hours for the ViewCvs-links to become valid – in the meantime use the link above):

  
WinCvs Macro "Undo Add"
$Revision: 1.1.2.1 $

written by Oliver Giesen, Nov 2005
contact: 
email:  ogware@...
icq:    18777742
y!:     ogiesen

Feel free to modify or distribute in whichever way you like, 
as long as it doesn't limit my personal rights to modify and
redistribute this code.
Apart from that the code is supplied "as-is", i.e. without warranty of any
kind, either expressed or implied, regarding its quality or security.
Have fun!

ATTENTION:
You will need at least WinCvs 1.3.5 to execute any Python macros
from within WinCvs! This macro has last been tested against WinCvs 2.0.3 .

======
Usage:

- Select one or more added files

- Run the macro from the Macros|Add menu.

=============
Known Issues / "Un-niceties":

- None so far.

Please report any problems you may encounter or suggestions you might
have to ogware@... .

I’d be happy to hear your comments.

Cheers,

Oliver

Posted in WinCvs | Tagged: , , | 1 Comment »

FTP Upload Selection macro available.

Posted by tier777 on 2005-10-19

Inspired by a recent thread on the CVSGUI list, I just wrote this little macro:

FtpUpload.py

It allows you to upload any selection of files or folders to a specified folder on an FTP server. Here are the relevant bits from the comment header (take special note of the disclaimers regarding binary file handling!):

WinCvs Macro "Ftp Test"
$Revision: 1.1.2.4 $

written by Oliver Giesen, Oct 2005
contact: 
email:  ogware@...
icq:    18777742
y!:     ogiesen

Feel free to modify or distribute in whichever way you like, 
as long as it doesn't limit my personal rights to modify and
redistribute this code.
Apart from that the code is supplied "as-is", i.e. without warranty of any
kind, either expressed or implied, regarding its quality or security.
Have fun!

ATTENTION:
You will need at least WinCvs 1.3.5 to execute any Python macros
from within WinCvs! This macro has last been tested against WinCvs 2.0.3 .

======
Usage:

- Select one or more files and/or folders

- Run the macro from the Macros menu

- Follow the on-screen instructions

~ The macro will attempt to login to the given host and chdir into the given
destination directory (creating it if necessary). It will then upload the 
selected files and folders. It will recreate the directory structure of
your sandbox, i.e. if you select files from multiple folders with
Flat View turned on, the macro will upload the files to the relative paths
that are displayed in the Path column.

=============
Known Issues / "Un-niceties":

- No auto-detection of binary files to speak of! If files are under
CVS-control and are marked binary, the macro will pick this up but "Unknown"
files are currently always transferred as text.
- I have occasionally noticed corruption of binary files but haven't yet been
able to determine what causes it and how to prevent it.
- No support yet for advanced FTP connection options, like port, proxy,
active mode, etc.
- The password entry is in plain text.
- The password is not remembered (though it would be trivial to add that
functionality). This is actually on purpose for security/privacy reasons
but still a bit annoying in practice.

Please report any problems you may encounter or suggestions you might
have to ogware@... .

Cheers,

Oliver

Posted in WinCvs | Tagged: , , | 1 Comment »

“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):

New "Build Custom ChangeLog" dialog

from cvsgui/ChangeLog (rev 1.950):

Mon Sep 12 2005  Oliver Giesen <ogware AT gmx DOT net>
* WinCvs 2.0.3 / Macros:
  - SafeTk: added generic base classes for creating Tk-based macros
  - cvs2clTk: added new experimental Tk-GUI version of advanced ChangeLog macro
               (replaces old CvsAlert-based version when Tk is available)
  - cvs2cl: moved Build ChangeLog selection macros onto their own menu
  - cvs2cl: added options to omit authors and/or files from ChangeLog
             (not yet available for command line version)
  - cvs2cl: very long lines are now wrapped even when there already are line
             breaks in the original log message;
             default wrap point for these is currently at 100 characters
  - RecursiveAddTk: improved error reporting
  - added new component for experimental/new macros to installer and made new and
     old macros sub-components of the Macros component

If you want to try it out now (it also works with WinCvs 2.0.2.4 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:

(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).

Cheers,

Oliver

Posted in WinCvs | Tagged: , , | Leave a Comment »

Getting started…

Posted by tier777 on 2005-09-06

Yes, it’s another blogger…
Don’t expect too much though. It’s just another attempt to find the ideal medium after most of the previous ones died in silence.

Current plans are to post whatever comes to my mind that I feel should be preserved in an easily retrievable fashion either just for myself or hopefully for others as well – you may want to call it public brainstorming. This will possibly include drafts for WinCvs macros as well as interesting web links, Delphi and C# code snippets, general musings on version control concepts and being a mailing list moderator, cool tools and useful tips and tricks.
I might even get personal and start posting family pictures and stuff about my latest musical favourites or rants about movies I saw or books I read. Who knows? Maybe this is already my last post. We will see.

Stay tuned – but don’t hold your breath.

Cheers,

Oliver

Posted in Uncategorized | Tagged: , , , , , | Leave a Comment »