Files changed (1)
- Ignore whitespace
The `hgdate` extension for mercurial allows you to set a persistent date offset in your repository which gets applied to commits. This is similar in concept to the `--date` option on the `commit` command, but instead of specifying it on each commit, you just specify a reference date once and the extension manages it from there.
When invoked with the `DATE` argument, the command sets the repository's date offset such that the current time is considered as the specified DATE, according to the repository. For example:
When invoked with neither the `--clear` option nor the `DATE` argument, the function simply prints out the current date and time, according to the repository and the currently configured date offset. If no date offset is set for the repository, this will be equal to the current time according to the computer system. For example:
To get rid of the offset and get your repository back to using real time, simply pass the `--clear` option. For example: