【发布时间】:2023-03-07 07:53:01
【问题描述】:
要获取更改列表,this answer 提供命令行:
hg status --change REV
但是使用 hglib 调用 status 会报错:
>>> client.status(rev=-1, change=True)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\asdf\envs\stackoverflow\lib\site-packages\hglib\client.py", line 1384, in status
raise ValueError('cannot specify both rev and change')
ValueError: cannot specify both rev and change
为什么我们不能同时指定rev 和change?
在回复another recent question 时,我发布了:
client.status(rev=[start, end], modified=True, added=True)
这行得通,但我想知道为什么另一个不行。我错过了什么?
【问题讨论】: