On Vr, 2007-01-12 at 04:35 +0100, lars wrote:
> Hi,
> I am interested in committing translations updates with pootle to a subversion
> repository.
> 
> First I assumed, that there would be not svn/cvs-integration at all, as it was
> not mentioned in README (it felt like a planned-but-not-yet-implemented
> feature).

I see the README only very briefly mention it. I realise that our wiki
documentation is more complete.

> 
> Then I happily discovered versioncontrol.py.
> But the current integration lacks one feature, that would be quite important
> for me:
> As the languages files of my currently-to-be-translated project are
> spread around different directories in the repository, I symlinked them to the
> appropriate places below /var/lib/pootle/. This feels like a very reasonable
> solution for me.
> As the current implementation of versioncontrol.py does not follow symlinks as
> a fallback, I can not use it.

I think it can be useful to follow symlinks. Thanks for the idea!  I'm
wondering if your problem could also have been solved with a symlink to
the CVS or .svn directory. Anybody using this setup?

> 
> So I added a check for the symlinked parent directory.
> As the current state of versioncontrol.py does not seem to be easy to extend
> for other version control systems, I turned it into a class based module. Now 
> it
> should be very easy to add other version control systems. (I left some parts 
> of
> the old interface there, to keep the changes in other files small - this needs
> to be cleaned up)

This is a good idea. I've also felt it could use some restructuring.
This will have to be tested well as it is quite a big change, so I'm not
specifically against even making API changes in other files if it is
necessary. I will probably need your help in testing the beta versions
or release candidates.

> Additionally I replaced the commandline calls of "svn" with the python module
> "svn" (http://pysvn.tigris.org).

I'm wondering a bit about this. pysvn doesn't seem to be a standard
package. I see it is packaged for Debian and they provide install kits
for Windows and Mac OSX. I couldn't download the source now because of a
redirect loop on their site. It seems a bit big to package with Pootle,
and from a quick look at the source code, seems to be in C++. As things
are, we are just trying to simplify installation at the moment, but I
guess one more dependency isn't the end of the world :-)

I'm wondering if this would affect performance - my guess is that it
will make no difference. Wouldn't it be easier to stick with the command
line client, or are there other benefits to using pysvn? Which will be
most platform independent? I guess the ultimate would be to have support
for both and then fall back if one isn't available, but that is more
work :-/


> The attached patch should be functionally equal to the original code (taken 
> from
> the current subversion repository yesterday). I tested updating and committing
> for subversion successfully.
> 
> But I had to turn off the checks for "commit" permissions in the source code,
> as I could not discover a way to give my user "commit" permissions
> via /etc/pootle/user.prefs or with the admin webinterface. 
> I could not find any example regarding this. Could you give me a hint?
> 

For information about assigning permissions or rights, visit
http://translate.sourceforge.net/wiki/pootle/permissions

For information about version control integration, visit
http://translate.sourceforge.net/wiki/pootle/version_control

> I hope, that the attached patch appears to be useful for you, as I would like
> to contribute more to integration of version control support.
> 
> thanks for pootle,
> Lars

Thank you for your contribution! I currently have many patches to go
through, so please understand if it doesn't get my immediate attention.
It would be wonderful if we can extend Pootle's abilities with regard to
version control. We'll still need to discuss pysvn a bit, but I'm happy
to have another contributor!

Thank you!
Friedel


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Translate-pootle mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/translate-pootle

Reply via email to