A Scalable, User-Friendly Source Control System.
Go to file
Yuya Nishihara 96a8ea56df cmdserver: forcibly use L channel to read password input (issue3161)
Command server is designed to use the channel protocol even if the server
process is accessible to tty, whereas vanilla hg should be able to read
password from tty in that case.  So it isn't enough to swap sys.stdin:

    # works only if the server process is detached from the console
    sys.stdin = self.fin
    getpass.getpass('')
    sys.stdin = oldin

or test isatty:

    # vanilla hg can't talk to tty if stdin is redirected
    if self._isatty(self.fin):
        return getpass.getpass('')
    else:
        ...

Since ui.nontty flag is undocumented and command-server channels don't provide
isatty(), this change won't affect the other uses of ui._isatty().

issue3161 also suggests to provide some context of messages.  I think it can
be implemented by using the generic templating function.
2014-04-26 18:13:06 +09:00
contrib contrib: remove mergetools.hgrc premerge=False for Beyond Compare and Araxis 2014-04-17 14:54:46 +02:00
doc doc: show short description of each commands in generated documents 2014-03-11 14:36:40 +09:00
hgext color: add missing handling of stderr capture introduced by 1428763bd397 2014-04-27 15:09:48 +09:00
i18n i18n-pt_BR: synchronized with a61616787725 2014-04-01 13:27:12 -03:00
mercurial cmdserver: forcibly use L channel to read password input (issue3161) 2014-04-26 18:13:06 +09:00
tests cmdserver: forcibly use L channel to read password input (issue3161) 2014-04-26 18:13:06 +09:00
.hgignore Makefile: do update on a temporary copy of a po file 2013-11-05 09:43:36 +01:00
.hgsigs Added signature for changeset dcd1cc15d1aa 2014-04-17 19:39:04 -04:00
CONTRIBUTORS Add note to CONTRIBUTORS file 2007-11-07 21:10:30 -06:00
COPYING COPYING: refresh with current address from fsf.org 2011-06-02 11:17:02 -05:00
hg rename util.set_binary to setbinary 2011-05-06 15:25:35 +02:00
hgeditor Fixed a bashism with the use of $RANDOM in hgeditor. 2010-05-19 18:06:35 +02:00
hgweb.cgi mq: add a warning about uncommitted changes for qfinish 2011-11-10 15:40:34 -06:00
Makefile setup: specify --prefix="" for install-home-bin to avoid badness with defaults 2014-02-03 02:09:46 -05:00
README readme: mention how to run in-place 2012-03-02 21:43:55 +02:00
setup.py setup.py: fix C extension compilation issue with OS X 10.9 and Xcode 5.1 2014-04-15 16:27:12 -04:00

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 http://mercurial.selenic.com/ for detailed installation
instructions, platform-specific notes, and Mercurial user information.