Mercurial > evolve
view tests/test-share.t @ 5779:96ed73c5c6ca
doc: remove .strip() for a docstring
This shouldn't be necessary, and by stripping it (and removing the trailing
newline) it causes issues with Mercurial's doc/gendoc.py's RST output, since
there's no newline separating this string and the thing that comes after it.
I believe that the `.strip()` has been in there since the beginning, but I have
not found a reason for its existence. It's possible that this was required in
older Mercurial versions, but is no longer required? Notably, the tests (which
include an invocation of `hg help evolution`) still pass with this change.
### Alternatives considered
- Making gendoc.py robust against this. This was rejected since there's no need
for the .strip() as far as I can tell, and this is the only case I know of
that would need such logic.
author | Kyle Lippincott <spectral@google.com> |
---|---|
date | Wed, 17 Feb 2021 12:00:45 -0800 |
parents | 6c0992ce05f7 |
children |
line wrap: on
line source
Test that share-clones use the cache in the original repository. $ . $TESTDIR/testlib/common.sh $ hg init share-base $ cd share-base/ $ cat >> .hg/hgrc <<EOF > [extensions] > evolve= > share= > EOF $ hg debugbuilddag .+3:branchpoint+4*branchpoint+2 $ cd .. $ hg --config extensions.share= share -U share-base share-client $ cd share-client $ hg debugupdatecache $ test -d .hg/cache [1] $ test -d ../share-base/.hg/cache