~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/svn.py

Replaced Python config files (conf.py) with new config files system, using
    configobj (INI-file style config files).

setup.py config now produces ./etc/ivle.conf, a new-style config file.
ivle/conf/conf.py is now part of the IVLE source code. It reads the new config
file and provides the same legacy interface, so all of IVLE still functions,
including setup.py config.

Added /etc to the source tree (config files will be stored here).
Added configobj as a dependency in doc/setup/install_proc.txt.

setup.py install copies ./etc/ivle.conf into /etc/ivle/ivle.conf.

Removed boilerplate code generation from setup/configure.py (that code is now
part of ivle/conf/conf.py which is now in the source tree).

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
    except pysvn.ClientError:
49
49
        return False
50
50
 
51
 
def revision_is_dir(client, path, revision):
52
 
    """Returns True if the given path+revision is a directory.
53
 
    @raises a pysvn.ClientError if it does not exist.
54
 
    """
55
 
    # XXX I *think* the first element of the list is the requested object, and
56
 
    # subsequent items are its possible children (so ignore them).
57
 
    list_object, _ = client.list(path, revision=revision)[0]
58
 
    # list_object is a PySvnList object
59
 
    return list_object.kind == pysvn.node_kind.dir
60
 
 
61
51
class PysvnListStatWrapper:
62
52
    '''Wrap a pysvn listing object to look somewhat like a result of
63
53
       os.stat.