Under the hood, Repository uses Mercurial as backend to manage revisions. That is, it depends on local filesystem.
World repository.
Parameters: | path (basestring) – a repository path. it could be None to avoid repository initialization |
---|
(basestring) The path of the repository. Could be None when the repository is not initialized yet.
In order to initialize the repository, set path property.
(WorkingContext) The working context of the repository.
Adds an transient fact object into the repository. The added fact object will start to be tracked by the version control system.
Parameters: | fact (Fact) – an transient fact object to add |
---|
Note
Actually, it’s an alias of WorkingContext.add() method.
Commits pending changes.
Parameters: |
|
---|
The abstract base class of ChangeContext and WorkingContext.
Additionally it implements collections.Mapping interface also. Fact objects can be gotten by an index operator.
Parameters: |
|
---|
Note
Its constructor is internal-use only. Do not instantiate this type directly. Use an index operator of Repository objects instead:
repository[rev]
(Repository) The repository of the change context.
(mercurial.context.changectx) The Mercurial internal change context object.
(dict) The dictionary of loaded fact objects. Keys are __fact_id__ strings and values are Fact objects.
(collections.Sequence) The list of parent nodes.
(datetime.datetime) The time of the changeset. It is a timezone-aware datetime.datetime value.
The change context of the revision.
(basestring) The hexadecimal revision.
(basestring) Commit message.
Currently working change context.
(collections.MutableSet) The set of ignored file globs. If you add an additional new glob pattern into the set, it will be added into .hgignore file internally.
The simple datetime.tzinfo implementation that stores just its offset.
Parameters: | offset (datetime.timedelta) – an offset from UTC. UTC by default |
---|
The set abstracts .hgignore list. It is a subtype of collections.MutableSet.
Parameters: | context (WorkingContext) – a working context |
---|
Note
This object is returned by WorkingContext.ignored_file_globs property. Use the property instead of direct creation of this object.
(basestring) The absolute path of .hgignore file.
An abstract base class of Repository-related errors. It is a subtype of mercurial.error.RepoError.
The exception which rise when the repository of fact has any problem. It is a subtype of ValueError.
Parameters: |
|
---|
(Repository) The repository related to the error.
The exception which rise when the requested revision cannot be found. It is a subtype of mercurial.error.RepoLookupError and LookupError.
Parameters: |
|
---|
(Repository) The repository related to the error.
The requested revision