Add files to be tracked.
Return ChangeSet object with information about changes performed on tracked files.
Performs a commit.
Show diff between two revisions. The output can be limited by passing a list of files. If ‘old_commit’ is not specified, use the branch head commit. If ‘new_commit’ is not specified, use working tree state (not really a commit).
Get file content at a given commit. If the commit is not specified, use the last one.
Get AttributeSet with information taken from a given commit.
Initialize new repository. If the repository is already initialized, ‘force’ has to be set to True.
Convert name of file stored in repository to real name on filesystem.
Recover file(s) including attributes from repository. If the commit is not given, use the last one.
Set up a synchronization with remote server and return an updated list of servers.
Opposite of real_filename(). Returns virtual repository path.
Run synchronization with remote server.
Return list of tracked files.
Remove files from the list of tracked files.
Delete client history.
Initialize server repository. If the repository is already initialized, ‘force’ has to be set to True.
Show client history.
Return a dictionary with information about synchronized clients.
Example result: { “alice”: (“1234567”, “2011-01-01 01:01:01”), “bob”: (“abcdefg”, “2011-02-02 02:02:02”) }
This is a base class for ClientRepository and ServerRepository.
Show diff between two revisions. The output can be limited by passing a list of files.
Get file content at a given commit.
Load file attributes from repository at a given commit.
Return True if the repository is initialized.
Get commit history. The history can be limited by passing a list of files.
Convert repository filename to real filename. Opposite of repo_filename.
Convert real filename to repository filename. Opposite of repo_filename.
Show content of given commit (as a diff). The output can be limited by passing a list of files.
Decorator function. Raise exception on method call if the repository is not initialized.
Decorator function. Raise exception on method call if the repository is initialized.
Add files or directories to the repository.
If ‘config_only’ is set to True, only configuration files (according to package manager database) will be added and the other will be ignored. The setting of this option does not have effect on adding files.
Return list of configuration files owned by given package.
Remove files from the list of versioned files.
Universal class for simple object storing on local filesystem. Can be used as database or cache. Uses Python pickle as internal storage.
Get object stored in cache (shallow copy).
Note that data structures obtained using this method are not saved to cache after any modifications. To save the state of the object to cache, use cache.data = data or cache.save().
Save the object to the cache.
Return timestamp of the last save operation.
Set location for cache files.
Get a message describing time of next autocommit for a given changeset.
Get time of an autocommit for a given ChangeSet.
Storing file attributes (permissions, owner, SELinux context).
Representation of attributes of one file.
Stores file name, owning package, ownerships, permissions and SELinux context.
Get difference between two file attributes. Both Attribute objects have to refer to the same file. Return appropriate changes.Change object if the attributes differ. Otherwise return None.
Convert string to Attribute object.
Read mode, permission and context of the file.
Apply mode, permissions and context to the file.
Convert Attribute object to string representation.
Base class for any kind of change held on filesystem.
Return a string with detailed information about the change.
Merge the old change into new one (self).
Return a string with the name of the change.
The aggregation of changes (class Change).
Add another Change object to the list of changes performed on one file. Any old Change object of the same type (same base class) is removed before.
Replace the list of all changes performed on one file.
Group changes by package name. Return a dictionary with package names as keys and ChangeSet objects as values. Shallow copies of the lists are performed.
List of files whose changes this object holds.
Merge this object with another one. The changes stored in the second object are considered old. It might be necessary to confront the state of the changes with the old state. The action is performed by calling ‘merge’ method on matching objects (of Change type).
Get timestamp of the first change in the list of changes.
Get timestamp of the last change in the list of changes.
Information about the change of the file SELinux context.
Information about the file deletion.
Information about the change of the file mode.
Process exit code.
Process error output.
Process output.
Convert path to absolute and normalized path.
Create list of files in given directory (recursively).
Return True if specified path is real directory (not symlink), False otherwise.
Create directories recursively. Newly created directories are set user-accessible only. Works the same as Python ‘os.makedirs’ function.
Open file handle. If the file is created, set it user-accessible only. Works the same as Python builtin ‘open’ function
Return the name of new temporary file created by tempfile.mkstemp(). The file will be automatically deleted at program termination.