# Path: subvertpy/ra.py
# def RemoteAccess(url, *args, **kwargs):


from subvertpy.ra import RemoteAccess, Auth, get_username_provider
#!/usr/bin/python
# Demonstrates how to use the replay function to fetch the
# changes made in a revision.


conn = RemoteAccess("svn://svn.gnome.org/svn/gnome-specimen/trunk",
                    auth=Auth([get_username_provider()]))


class MyFileEditor:

    def change_prop(self, key, value):
        print("Change prop: %s -> %r" % (key, value))

    def apply_textdelta(self, base_checksum):
        # This should return a function that can receive delta windows
        def apply_window(x):
            pass
        return apply_window

    def close(self):
        pass


class MyDirEditor:

    def open_directory(self, *args):
        print("Open dir: %s (base revnum: %r)" % args)
        return MyDirEditor()


# Path: subvertpy/ra.py
# def RemoteAccess(url, *args, **kwargs):


# Path: examples/ra_replay.py
from subvertpy.ra import RemoteAccess, Auth, get_username_provider

#!/usr/bin/python
# Demonstrates how to use the replay function to fetch the
# changes made in a revision.


conn = RemoteAccess("svn://svn.gnome.org/svn/gnome-specimen/trunk",
                    auth=Auth([get_username_provider()]))


class MyFileEditor:

    def change_prop(self, key, value):
        print("Change prop: %s -> %r" % (key, value))

    def apply_textdelta(self, base_checksum):
        # This should return a function that can receive delta windows
        def apply_window(x):
            pass
        return apply_window

    def close(self):
        pass


class MyDirEditor:

    def open_directory(self, *args):
        print("Open dir: %s (base revnum: %r)" % args)
        return MyDirEditor()


    def add_directory(self, path, copyfrom_path=None, copyfrom_rev=-1):