[Bug 5740] New: No obvious way to disable graph output added from alias

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Mon Nov 13 19:36:46 UTC 2017


https://bz.mercurial-scm.org/show_bug.cgi?id=5740

            Bug ID: 5740
           Summary: No obvious way to disable graph output added from
                    alias
           Product: Mercurial
           Version: default branch
          Hardware: PC
                OS: Windows
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: gregory.szorc at gmail.com
                CC: mercurial-devel at mercurial-scm.org

https://bugzilla.mozilla.org/show_bug.cgi?id=1415922 is an interesting bug
report.

At the crux of it, some automated code attempts to run `hg log -T '{node}'` to
resolve a node value. However, the user's hgrc has an [alias] for "log = log
-G". So the `hg log` output contains a leading graph node before the node.

The behavior is the same if HGPLAIN is used.

A workaround is to use `--config alias.log=log`. But that feels hacky.

It feels like there should be a more scripting-friendly way to ensure aliases
don't come into play when running commands.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list