hg-root - Man Page
print the root (top) of the current working directory
Examples (TL;DR)
- Display the root location of the current repository:
hg root
- Display the root location of the specified repository:
hg root --cwd path/to/directory
Synopsis
hg root
Description
Print the root directory of the current repository.
Template:
The following keywords are supported in addition to the common template keywords and functions. See also hg help templates.
- hgpath
String. Path to the .hg directory.
- storepath
String. Path to the directory holding versioned data.
Returns 0 on success.
Options
- -T,--template <TEMPLATE>
display with template