docs/publish.sh @ e2d60e4e3caf

Fix error: don't assume status is a tuple

This fix also works with older versions of Mercurial. `repo.status()` used to
return a named tuple; since 5.2.1 it returns an object. So `st[:5]` no longer
works, but `st.modified` works with both old and new versions of Mercurial.
author Sietse Brouwer <sbbrouwer@gmail.com>
date Tue, 26 May 2020 14:57:58 +0200
parents 187b25ff6e1a
children (none)
#!/usr/bin/env bash

markdoc build
rsync --delete -az .html/ ~/src/sjl.bitbucket.org/hg-prompt
hg -R ~/src/sjl.bitbucket.org commit -Am 'hg-prompt: Update documentation.'
hg -R ~/src/sjl.bitbucket.org push