With Mercurial, how do you hg log a branch with cross-branch ancestors?

亡梦爱人 提交于 2019-12-05 20:42:06

Not 100% sure if this will work:

hg log -r '::stable - ::540'

I'm uncertain about it because I would have thought the command you provided would mostly be correct, except for changeset 539. You're not passing -b stable to hg log by mistake, are you?

Have a look at revsets. Kevin posted the short form of what you want - here's the long form:

hg log -r "ancestors('stable') and not ancestors(540)"

Revsets are incredibly powerful, and you can just enter them into the filter bar of TortoiseHg.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!