mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
88df00bd2f
Summary: out could be stdout but not a tty. In that case, do not redirect stdout to pipes. This might solve some arc pull issues. Write `a.py`: util.system('ls -l /proc/self/fd/1') util.system('ls -l /proc/self/fd/1', out=ui.fout) ui.system('ls -l /proc/self/fd/1') Before: hg dbsh a.py > /tmp/b; cat /tmp/b l-wx------ 1 quark users 64 Apr 13 11:44 /proc/self/fd/1 -> /tmp/b l-wx------ 1 quark users 64 Apr 13 11:44 /proc/self/fd/1 -> pipe:[2144298266] l-wx------ 1 quark users 64 Apr 13 11:44 /proc/self/fd/1 -> /tmp/b CHGDISABLE=1 hg dbsh a.py > /tmp/b; cat /tmp/b l-wx------ 1 quark users 64 Apr 13 11:47 /proc/self/fd/1 -> /tmp/b l-wx------ 1 quark users 64 Apr 13 11:47 /proc/self/fd/1 -> pipe:[2144352743] l-wx------ 1 quark users 64 Apr 13 11:47 /proc/self/fd/1 -> pipe:[2144352745] After: lhg dbsh a.py > /tmp/b; cat /tmp/b l-wx------ 1 quark users 64 Apr 13 11:45 /proc/self/fd/1 -> /tmp/b l-wx------ 1 quark users 64 Apr 13 11:45 /proc/self/fd/1 -> /tmp/b l-wx------ 1 quark users 64 Apr 13 11:45 /proc/self/fd/1 -> /tmp/b CHGDISABLE=0 lhg dbsh a.py > /tmp/b; cat /tmp/b l-wx------ 1 quark users 64 Apr 13 11:55 /proc/self/fd/1 -> /tmp/b l-wx------ 1 quark users 64 Apr 13 11:55 /proc/self/fd/1 -> /tmp/b l-wx------ 1 quark users 64 Apr 13 11:55 /proc/self/fd/1 -> /tmp/b Reviewed By: skotchvail Differential Revision: D27744057 fbshipit-source-id: 62cab690a5cf32b2b3c68c776c627476b0f975d8 |
||
---|---|---|
.. | ||
contrib | ||
distutils_rust | ||
doc | ||
edenscm | ||
edenscmnative | ||
exec | ||
hgcache_size_logger | ||
i18n | ||
lib | ||
newdoc | ||
pystubs | ||
slides | ||
tests | ||
.editorconfig | ||
.flake8 | ||
.gitignore | ||
COPYING | ||
gen_version.py | ||
hgeditor | ||
Makefile | ||
README.rst | ||
setup3.py | ||
setup.py |
Mercurial ========= Mercurial is a fast, easy to use, distributed revision control tool for software developers. Basic install:: $ make # see install targets $ make install # do a system-wide install $ hg debuginstall # sanity-check setup $ hg # see help Running without installing:: $ make local # build for inplace usage $ ./hg --version # should show the latest version See https://mercurial-scm.org/ for detailed installation instructions, platform-specific notes, and Mercurial user information.