Mercurial > hg
comparison contrib/hgweb.fcgi @ 34299:b1d4ac068961
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
author | Jun Wu <quark@fb.com> |
---|---|
date | Thu, 21 Sep 2017 11:03:37 -0700 |
parents | 85cba926cb59 |
children | 99e231afc29c |
comparison
equal
deleted
inserted
replaced
34298:25e1a8876cc0 | 34299:b1d4ac068961 |
---|