Skip to content

Mercurial

Displays information about local mercurial repositories: branch, changed files, and recent commits.

Branch

The name of the currently-active mercurial branch.

Changed Files

A list of all the files that have changed since the last commit, and their status.

Recent Commits

A list of n recent commits, who committed it, and when.

Configuration

mercurial:
  commitCount: 5
  commitFormat: "[forestgreen]{rev}:{phase} [white]{desc|firstline|strip} [grey]{author|person} {date|age}[white]"
  enabled: true
  position:
    top: 0
    left: 3
    height: 2
    width: 2
  refreshInterval: 8s
  repositories:
  - "/Users/user/fakelib"
  - "/Users/user/fakeapp"

Screenshots

mercurial screenshot

Attributes

Name Value
commitCount
The number of past commits to display.
Any positive integer.
commitFormat
Optional The string format for the commit message.
{{ value }}
repositories
A list of Mercurial repositories to watch.
A list of zero or more local file paths pointing to valid mercurial repositories.

Keyboard

Key Action
/ Open/close the widget's help modal
h Show the previous Mercurial repository
l Show the next Mercurial repository
r Refresh the data
{{ arrowback }}Show the previous Mercurial repository
{{ arrowfore }}Show the next Mercurial repository

Source Code

https://github.com/wtfutil/wtf/tree/master/modules/mercurial