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(path, **extra)[source]

represents a repository


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

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

The revision id the vcs gave this commit

Type:int or string