...">

Why does the mercury "hg log-style paper" give me a "permission denied" error?

hg log works.
hg log -style does not work.

C: \ temp \ myhg> "c: \ program files \ mercurial \ hg" log

changeset: 0: 9c62e300d833
user:         Administrator @ biostar
date: Wed Oct 21 04:57:41 2009 -0500
summary: 124 my first commit

C: \ temp \ myhg> "c: \ program files \ mercurial \ hg" log --style paper
abort: Permission denied: c: \ program files \ mercurial \ templates \ paper

While you are reading, here is the big picture: I want to get the magazine format in an easy-to-parse format. If I use -template {files} with the log command, and if there are spaces in the file names, the result is not suitable for parsing. So, according to the docs, I need to use a “style”. But I can’t even get to the point that I am using the styles set with Mercurial.

I did the vanilla Mercurial installation on Windows XP and was able to run init, add, commit, and log commands without problems.

+3
source share
2 answers

AFAIK, html templates such as paper are intended for use with hgweb. I do not know how to use them from the command line.

What you can do: write a style that will be easy to make out.

, map-cmdline.<style> templates Hg. - . - HgBook.

, .

+4

hg help templating :

Mercurial: (, ), .

, - , paper? .

+2

Source: https://habr.com/ru/post/1720748/


All Articles