mirror of
https://github.com/facebook/sapling.git
synced 2025-01-06 21:48:36 +03:00
780faa2c10
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
12 lines
251 B
Perl
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
|