diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -3304,9 +3304,10 @@ def log(ui, repo, *pats, **opts): With --graph the revisions are shown as an ASCII art DAG with the most recent changeset at the top. - 'o' is a changeset, '@' is a working directory parent, 'x' is obsolete, - and '+' represents a fork where the changeset from the lines below is a - parent of the 'o' merge on the same line. + 'o' is a changeset, '@' is a working directory parent, '_' closes a branch, + 'x' is obsolete, '*' is unstable, and '+' represents a fork where the + changeset from the lines below is a parent of the 'o' merge on the same + line. Paths in the DAG are represented with '|', '/' and so forth. ':' in place of a '|' indicates one or more revisions in a path are omitted. diff --git a/mercurial/help/urls.txt b/mercurial/help/urls.txt --- a/mercurial/help/urls.txt +++ b/mercurial/help/urls.txt @@ -24,7 +24,7 @@ web.cacerts. Some notes about using SSH with Mercurial: - SSH requires an accessible shell account on the destination machine - and a copy of hg in the remote path or specified with as remotecmd. + and a copy of hg in the remote path or specified with remotecmd. - path is relative to the remote user's home directory by default. Use an extra slash at the start of a path to specify an absolute path:: diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -67,6 +67,26 @@ Python {py} detected. printf(error, file=sys.stderr) sys.exit(1) +# We don't yet officially support Python 3. But we want to allow developers to +# hack on. Detect and disallow running on Python 3 by default. But provide a +# backdoor to enable working on Python 3. +if sys.version_info[0] != 2: + badpython = True + + # Allow Python 3 from source checkouts. + if os.path.isdir('.hg'): + badpython = False + + if badpython: + error = """ +Mercurial only supports Python 2.7. +Python {py} detected. +Please re-run with Python 2.7. +""".format(py=sys.version_info) + + printf(error, file=sys.stderr) + sys.exit(1) + # Solaris Python packaging brain damage try: import hashlib