Simple SVN/CVS-like library in Python?

Gary Herron gherron at islandtraining.com
Wed Feb 7 15:50:49 EST 2007


Andrea Gavana wrote:
> Hi All,
>
>     in our office we work with quite complex input files for a
> reservoir simulator. Those files have thousands of keywords, switches,
> sub-keywords and whatever. Every time a modification is requested, we
> modify the input file and re-run the simulator. Obviously, the
> possible modifications are innumerable: so, after few months, we lose
> the records of all the changes we made during time and we don't have
> anymore a clear history of our work. This can be a problem, as
> sometimes it happens that an old input file is requested by
> collegues/sub-companies, and it is a pain to retrieve the correct file
> and results.
> So, I have written a GUI in wxPython that could help us in tracking
> the history, but I was wondering if there exists a small and simple
> SVN/CVS-like library in Python that may help us in a better way,
> storing modifications/changes and showing which input file are the
> "children" of (are derived from) another input file (older).
> But I am open to all possible suggestions to improve/modify the
> software, as this is an area in which my experience is about nothing
> above zero.
>
>   
Why not just use SVN?  (Or any other version control system for that 
matter.) Subversion would allow you to save changes, create and merge 
branches of changes, compare any two revisions, label (tag) specific 
revisions, retrieve by tag or date, ...

It's got far more feature than you're likely to get into any Python 
scripts in the near future.  (Plus it's scritable from Python so you can 
automate some tasks if you wish.



Gary Herron


> Thank you very much for every hint.
>
> Andrea.
>
> "Imagination Is The Only Weapon In The War Against Reality."
> http://xoomer.virgilio.it/infinity77/
>   




More information about the Python-list mailing list