You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To be used from other packages, RepositoryHandler should be installed:
$ python setup.py install
If root access is not possible, the "sudo" command will not be run and the package will stay installed in the current directory.
It can be used there by including it in the PKG_CONFIG_PATH environment variable.
Examples
CVS Repository
fromrepositoryhandler.backendsimportcreate_repository# create a cvs repository for poppler on FreeDesktoprepo=create_repository ('cvs', ':pserver:anoncvs@anoncvs.freedesktop.org:/cvs/poppler')
# checkout module poppler into /tmp directory from HEADrepo.checkout ('poppler', '/tmp/')
# update working copy on /tmp from POPPLER_0_5_X branchrepo.update ('/tmp/poppler', rev='POPPLER_0_5_X')
# show diff between HEAD and POPPLER_0_5_X branchesdiff=repo.diff ('/tmp/poppler', revs= ['HEAD', 'POPPLER_0_5_X'])
printdiff# show history for ChangeLog filehistory=repo.log ('/tmp/poppler', files= ['ChangeLog'])
printhistory
About
RepositoryHandler is a python library for handling code repositories through a common interface.