Source

zaw-sources / zaw-hg-files.zsh

function zaw-src-hg-files() {
    hg root >/dev/null 2>&1
    if [[ $? == 0 ]]; then
        candidates=("${(ps:\0:)$(hg status -cman0)[1,-2]}")
    fi
    actions=("zaw-callback-edit-file" "zaw-callback-append-to-buffer")
    act_descriptions=("edit file" "append to edit buffer")
    options=("-m")
}

zaw-register-src -n hg-files zaw-src-hg-files