诀窍是在导出调用中使用日期修订。
以下是参考文档的摘录:http:
//pysvn.tigris.org/docs/pysvn_prog_ref.html#pysvn_revision
pysvn.Revision - 颠覆修订
Revision 对象具有三个成员变量:
kind - the kind of revision, its value is one of the opt_revision_kind enumerations.
date - date and time when kind is opt_revision_kind.date, as seconds since the epoch which is compatible with python's time module.
number - revision number when kind is opt_revision_kind.number
接口总结:
import pysvn
import time
revhead = pysvn.Revision( pysvn.opt_revision_kind.head )
revdate = pysvn.Revision( pysvn.opt_revision_kind.date, time.time() )
revnum = pysvn.Revision( pysvn.opt_revision_kind.number, 4721 )