[Bug 5566] New: docs problem: hglib "Basic Usage" instruction isn't correct
mercurial-bugs at mercurial-scm.org
mercurial-bugs at mercurial-scm.org
Mon May 15 22:59:52 UTC 2017
https://bz.mercurial-scm.org/show_bug.cgi?id=5566
Bug ID: 5566
Summary: docs problem: hglib "Basic Usage" instruction isn't
correct
Product: Mercurial
Version: unspecified
Hardware: PC
OS: Windows
Status: UNCONFIRMED
Severity: bug
Priority: wish
Component: hglib
Assignee: bugzilla at mercurial-scm.org
Reporter: d.kaden at braemacca.com
CC: mercurial-devel at mercurial-scm.org
The PythonHglib page, in section 4, "Basic Usage", contains this instruction:
print commit.author
The result of that is this:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'list' object has no attribute 'author'
It seems that the instruction should be
print client.tip().author
I'm using Python 2.7.3, Python Hglib version 2.4, and Windows 7. I ran python,
and typed the text on the web page directly into the interpreter.
Hglib web page: https://www.mercurial-scm.org/wiki/PythonHglib#Basic_usage
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list