source | issues

Repository Api

open(path, backends=None)[source]
Parameters:backends – optional list of backends to try

open a repository backend at the given path

find(root, backends=None)[source]
Parameters:root (py.path.local or path string) – the search root

find all repositories below root

class Repository(**extra)[source]

represents a repository

prepare_default_structure()[source]

if the vcs has a common standard repo structure, set it up

pull(source=None, rev=None)[source]

counterpart to push

push(dest=None, rev=None)[source]

push to a location

Parameters:
  • dest – the destination
  • rev – the maximum revision to push, may be none for latest
class Revision[source]
id

The revision id the vcs gave this commit

Type :int or string