sapling/eden/scm/tests/test-sparse-ignore.t
Jun Wu 780faa2c10 tests: replace print in debugshell with ui.write
Summary:
Similar to D18926784.

Mercurial makes sure content written by `ui.write` is flushed, while there is
no such guarantee for `print`. When running using chg, it's more likely that
`print` content gets disappeared. Therefore let's use `ui.write` instead.

Reviewed By: ikostia

Differential Revision: D18926983

fbshipit-source-id: 960c189cc48bc3c89bb4f7993d2033dd45c52a67
2019-12-13 10:30:39 -08:00

12 lines
251 B
Perl

$ enable sparse
$ newrepo
$ hg sparse include src
$ mkdir src
$ touch src/x
$ hg commit -m x -A src/x
The root directory ("") should not be ignored
$ hg debugshell -c 'ui.write("%s\n" % str(repo.dirstate._ignore.visitdir("")))'
True