Module libpijul::fs_representation [] [src]

Layout of a repository (files in .pijul) on the disk. This module exports both high-level functions that require no knowledge of the repository, and lower-level constants documented on pijul.org/documentation/repository, used for instance for downloading files from remote repositories.

Constants

PIJUL_DIR_NAME

Name of the root directory, i.e. .pijul.

Functions

branch_changes_base_path

Basename of the changes file for branch br. This file is only used when pulling/pushing over HTTP (where calling remote programs to list patches is impossible).

branch_changes_file

Changes file from the repository root and branch name.

create

Create a repository. dir must be the repository root (a ".pijul" directory will be created in dir).

find_repo_root

Find the repository root from one of its descendant directories. Return None iff dir is not in a repository.

id_file

The id file is used for remote operations, to identify a repository and save bandwidth when the remote state is partially known.

ignore_file
meta_file

The meta file, where user preferences are stored.

patch_file_name

Basename of the patch corresponding to the given patch hash.

patches_dir

Directory where the patches are. patches_dir("/a/b") = "/a/b/.pijul/patches".

pristine_dir

Directory where the pristine is, from the root of the repository. For instance, if the repository in in /a/b, pristine_dir("/a/b") returns/a/b/.pijul/pristine`.

read_dependencies

Read a patch, but without the "changes" part, i.e. the actual contents of the patch.

read_patch

Read a complete patch.

read_patch_nochanges

Read a patch, but without the "changes" part, i.e. the actual contents of the patch.

repo_dir

Concatenate the parameter with PIJUL_DIR_NAME.

untracked_files