/usr/share/doc/python-subvertpy/examples/wc.py is in python-subvertpy 0.9.3-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #!/usr/bin/python
# Demonstrates how to do access the working tree using subvertpy
import os
from subvertpy import client, repos, wc
from subvertpy.ra import Auth, get_username_provider
# Create a repository
repos.create("tmprepo")
c = client.Client(auth=Auth([get_username_provider()]))
c.checkout("file://" + os.getcwd() + "/tmprepo", "tmpco", "HEAD")
w = wc.WorkingCopy(None, "tmpco")
print w
entry = w.entry("tmpco")
print entry.revision
print entry.url
|