tests/test-filelog.py.out
author Jun Wu <quark@fb.com>
Thu, 21 Sep 2017 11:03:37 -0700
changeset 34306 b1d4ac068961
parent 16498 d76ba2090e0c
permissions -rw-r--r--
blackbox: do not prevent 'chg init' from working Previously, blackbox always appends to blackbox.log and creates the directory for that file on demand. That could be an issue if: 1. chg starts from `$REPO` directory, so `ui._bbrepo` is set. 2. `rm -rf $REPO`. 3. `chg init $REPO`, blackbox writes something and `init` will fail because `$REPO` directory is non-empty. This patch fixes that by verifying whether vfs exists before re-using it. Differential Revision: https://phab.mercurial-scm.org/D768

ERROR: FIXME: This is a known failure of filelog.size for data starting with \1\n
OK.