Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P225
stop making me a liar! hglib's erratic behavior on bookmarks call.
Active
Public
Actions
Authored by
ardumont
on Feb 15 2018, 10:39 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
```
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 "<stdin>", line 1, in <module>
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)
Event Timeline
ardumont
created this paste.
Feb 15 2018, 10:39 AM
2018-02-15 10:39:28 (UTC+1)
Log In to Comment