'How to set revision interval and add commit field to output in pysvn Subversion?
Why does the output not work correctly, taking into account the revision interval? Print all files from all revisions! enter image description here
How to print commit in the general output?
import pysvn
url = 'http://svn.code.sf.net/p/keepass/code/trunk/'
client = pysvn.Client()
url_info = client.list(
url,
peg_revision=pysvn.Revision(pysvn.opt_revision_kind.number, 137),
revision=pysvn.Revision(pysvn.opt_revision_kind.head),
recurse=True,
dirent_fields=pysvn.SVN_DIRENT_ALL,
patterns=["*.txt"]
)
for entry in url_info:
print(str(entry[0]["created_rev"].number) + " " + str(entry[0]["last_author"]) + " " + str(entry[0]["repos_path"]))
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
