[Bug 4907] New: log ignores revset alieases when called through python-hglib
mercurial-bugs at selenic.com
mercurial-bugs at selenic.com
Tue Oct 20 10:06:31 UTC 2015
https://bz.mercurial-scm.org/show_bug.cgi?id=4907
Bug ID: 4907
Summary: log ignores revset alieases when called through
python-hglib
Product: Mercurial
Version: 3.5
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: feature
Priority: wish
Component: hglib
Assignee: bugzilla at selenic.com
Reporter: gabor.stefanik at nng.com
CC: mercurial-devel at selenic.com
I have this in my hgrc:
[revsetalias]
branchtop($1) = heads(branch($1)) - bookmark()
This works fine when called from command line:
C:\repo>hg log -r branchtop("default")
changeset: 28208:<censored>
parent: 28193:<censored>
parent: 28202:<censored>
user: dhorvath
date: Fri Oct 16 13:58:16 2015 +0200
summary: Merge with <censored>
It also works from TortoiseHg's filter bar.
However, it fails when called through python-hglib:
C:\repo>python
>>> import hglib
>>> c = hglib.open('.')
>>> c.log('branchtop("default")')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\Lib\site-packages\hglib\client.py", line 993, in log
out = self.rawcommand(args)
File "C:\Python27\Lib\site-packages\hglib\client.py", line 183, in rawcommand
raise error.CommandError(args, ret, out, err)
hglib.error.CommandError: (255, '', 'hg: parse error: unknown identifier:
branchtop\n(did you mean one of branch, branchpoint?)')
If I make a small Hg extension to implement branchtop() instead of using an
alias, it works also through python-hglib.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list