``` ardumont@uffizi:~/repo/hg% python3 Python 3.5.3 (default, Jan 19 2017, 14:11:04) [GCC 6.3.0 20170118] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import hglib >>> repo = hglib.open('00003b-mjs') >>> repo.heads() [(b'15', b'da3f58351b7bf09afdebe42303cbaf17ee62b1e6', b'tip', b'default', b'Bart Botta <00003b@gmail.com>', b'Add functions for transforming points/lines\n\nFixes issue 6', datetime.datetime(2010, 6, 6, 7, 11, 2))] >>> repo.branches() [(b'default', 15, b'da3f58351b7b')] >>> repo.bookmarks() Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3/dist-packages/hglib/client.py", line 405, in bookmarks out = self.rawcommand(args) File "/usr/lib/python3/dist-packages/hglib/client.py", line 178, in rawcommand ret = self.runcommand(args, inchannels, outchannels) File "/usr/lib/python3/dist-packages/hglib/client.py", line 130, in runcommand writeblock(b('\0').join(args)) File "/usr/lib/python3/dist-packages/hglib/client.py", line 124, in writeblock self.server.stdin.flush() BrokenPipeError: [Errno 32] Broken pipe ``` ardumont@uffizi:~/repo/hg% python3 Python 3.5.3 (default, Jan 19 2017, 14:11:04) [GCC 6.3.0 20170118] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import hglib >>> r = hglib.open('./00003b-mjs') >>> r.branches() [(b'default', 15, b'da3f58351b7b')] >>> r.heads() [(b'15', b'da3f58351b7bf09afdebe42303cbaf17ee62b1e6', b'tip', b'default', b'Bart Botta <00003b@gmail.com>', b'Add functions for transforming points/lines\n\nFixes issue 6', datetime.datetime(2010, 6, 6, 7, 11, 2))] >>> r.bookmarks() ([], -1)