Mercurial: multiline commit message on the command line?

前端 未结 7 924
走了就别回头了
走了就别回头了 2021-02-06 20:20

How can I specify a multiline commit message for mercurial on the command line?

hg commit -m \"* add foo\\n* fix bar\"

does not work. The log

7条回答
  •  青春惊慌失措
    2021-02-06 20:56

    I know, there is already a solution for linux users, but I needed another solution for windows command line, so I was looking for it...

    And I found one: https://www.mercurial-scm.org/pipermail/mercurial/2011-November/040855.html

    hg commit -l filename.txt
    

    I hope, it's useful for someone out there ,)

    [EDIT] oO - it has already been added to the help

    -l --logfile FILE read commit message from file

提交回复
热议问题