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


from subvertpy.ra import RemoteAccess, Auth, get_username_provider

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):
        print("Add dir: %s (from %r:%r)" % (path, copyfrom_path, copyfrom_rev))
        return MyDirEditor()

    def open_file(self, *args):
        print("Open file: %s (base revnum: %r)" % args)
        return MyFileEditor()

    def add_file(self, path, copyfrom_path=None, copyfrom_rev=-1):
        print("Add file: %s (from %r:%r)" %
              (path, copyfrom_path, copyfrom_rev))
        return MyFileEditor()

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

    def delete_entry(self, path, revision):
        print("Delete: %s" % path)

    def close(self):
        pass



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


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


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):
        print("Add dir: %s (from %r:%r)" % (path, copyfrom_path, copyfrom_rev))
        return MyDirEditor()

    def open_file(self, *args):
        print("Open file: %s (base revnum: %r)" % args)
        return MyFileEditor()

    def add_file(self, path, copyfrom_path=None, copyfrom_rev=-1):
        print("Add file: %s (from %r:%r)" %
              (path, copyfrom_path, copyfrom_rev))
        return MyFileEditor()

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

    def delete_entry(self, path, revision):
        print("Delete: %s" % path)

    def close(self):
        pass



class MyEditor: