[Bug 6498] New: [evolve] user/username confusion

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Sun Mar 14 16:52:40 UTC 2021


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

            Bug ID: 6498
           Summary: [evolve] user/username confusion
           Product: Mercurial
           Version: 5.7.1
          Hardware: PC
                OS: All
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: evolution
          Assignee: bugzilla at mercurial-scm.org
          Reporter: ashemedai at gmail.com
                CC: mercurial-devel at mercurial-scm.org,
                    pierre-yves.david at ens-lyon.org
    Python Version: ---

(This seems slightly improved in 5.7.x in that it doesn't allow you to commit
without supplying a username thereby limiting shooting yourself in the foot as
much, in earlier versions this was less an issue since it seems to have
defaulted to your login on Linux/Unix systems.)

When using many of evolve's commands with --user "Name <email at domain.tld>"
while $HOME/.hgrc has no username set, the command will abort with an "abort:
no username supplied", e.g.:

$ hg metaedit --user "Name <email at domain.tld>"
transaction abort!
rollback completed
abort: no username supplied
(use 'hg config --edit' to set your username)

Given how user/username are understood by many people as being synonyms, this
can be quite confusing. I also initially got stumped a bit why I couldn't make
this work. That is, until I spoke with marmoute and mharbison on IRC.

This might be sort of related to bug 3169 and bug 3898.

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


More information about the Mercurial-devel mailing list