git lol和git lola与mercurial是否存在等价性?

git lol和git lola与mercurial是否存在等价性?,git,mercurial,Git,Mercurial,我在命令行中使用mercurial,我想知道是否有与git-lol和git-lola的等价物 它们是: lol=log--graph--decoration--pretty=oneline--abbrev commit lola=log--graph--decoration--pretty=oneline--abbrev commit--all--date=local 我试图用hg日志查找一些信息,但没有成功 编辑:可能是这样的: hg log-G-T“{node | short}-({bran

我在命令行中使用mercurial,我想知道是否有与
git-lol
git-lola
的等价物

它们是:

lol=log--graph--decoration--pretty=oneline--abbrev commit

lola=log--graph--decoration--pretty=oneline--abbrev commit--all--date=local

我试图用hg日志查找一些信息,但没有成功

编辑:可能是这样的:

hg log-G-T“{node | short}-({branch}){desc | strip | firstline}”

简短回答 是的,这是可能的,只要阅读
hg帮助日志
+
hg帮助模板

更长的答案 我太懒了,不想在中阅读文字墙,因此:如果你以可读的形式描述
git log
中使用的每个选项,我会快速而简单地找到hg等价物(对于存在于hg实体中的引用,
--decoration
中使用的f.e纯粹是git的玩具)

编辑:

我建议:

  • 稍微改进的模板版本(您可以选择任何需要的日期格式,而不是isodate格式)

    -T“{node | short}{separate('',书签,标签)}-({branch}){desc | strip | firstline}{date | localdate | isodate}”

  • 在smth的
    [templates]
    部分中定义模板(用于简化用法
    hg log-T lol
    )。像

可能会在日志字符串中为重读标记、书签和分支添加颜色

  • 可能添加
    lol
    lola
    )作为hg别名

你能定义“git lol”和“git lola”(它们不是git本身的一部分)吗?是的,对不起。我编辑了我的问题。谢谢,好多了。顺便说一句,
--pretty=oneline--abbrev commit
==
--oneline
哦。。。是的,你说得对谢谢我不知道模板的存在。。。通过阅读文档,我可以找到一些接近我想要的东西。仍然需要改进,但现在已经足够了。非常感谢!
[templates]

lol = "{node|short} {separate(' ',bookmarks,tags)} - ({branch}) {desc|strip|firstline} {date|localdate|isodate}"
[alias]
    
lol = log -G -T lol