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

Converting svnperms.py to use subprocess (so it works on !unix)

From: Trent Nelson <svn-dev-list_at_trentnelson.com>
Date: Mon, 8 Sep 2008 10:07:27 +0000

    If you try and use svnperms.py on Windows, you get a pretty funky
    error:

        C:\dev>svn ci -m "Initial revision." foo.py
        Adding foo.py
        Transmitting file data .svn: Commit failed (details follow):
        svn: Commit blocked by pre-commit hook (exit code 1) with
        output: svnlook author E:\data\svn\repos\support -t 35-m
        '{' is not recognized as an internal or external command,
        operable program or batch file.error: command failed:
        svnlook author E:\data\svn\repos\support -t 35-m
        '{' is not recognized as an internal or external command,
        operable program or batch file.

    The commands module, which svnperms.py uses to run underlying
    svnlook commands, only works on Unix. I'd like to convert it
    to use subprocess instead, which should make it a lot more
    platform independent than it currently is.

    Before I do, just wanted to ping the list to see if I'm missing
    something obvious.

        Trent.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-09-08 12:07:52 CEST

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

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