Another bug with unset username

Matt Mackall mpm at selenic.com
Tue Apr 1 19:06:55 UTC 2014


On Tue, 2014-04-01 at 18:33 +0300, anatoly techtonik wrote:
> On Tue, Apr 1, 2014 at 5:56 PM, Roman Neuhauser <neuhauser at sigpipe.cz> wrote:
> >
> > the above is *almost* a valid Cram[1] test case suitable
> > for http://bz.selenic.com/.
> >
> > [1] https://pypi.python.org/pypi/cram
> 
> I am on Windoze, so command line is different.
> 
>   $ hg amend -e
>   abort: cannot amend public changesets
> 
>   $ hg phase -d tip -f
> 
>   $ hg amend -e
>   transaction abort!
>   rollback completed
>   abort: no username supplied (see "hg help config")
> 
>   $ hg amend -e
>   warning: ignoring unknown working parent 5d40a9addebf!
>   abort: cannot amend public changesets

It probably has an obsolete marker making it hidden. You can confirm
this with hg log --hidden -r <rev>.

Presumably, you can then unobsolete it with 'hg touch'. But, you know,
with a username set.

Maybe you can do this:

[hooks]
post-clone = hg config -l

..so you don't forget to set a username.

Fixing these issues is probably a matter of duplicating the pattern
from:

changeset:   17446:3de04c07966a
user:        Sumeet <sumeet at fb.com>
date:        Mon Aug 27 12:41:10 2012 -0700
summary:     record: checks for valid username before starting recording
process (issue3456)

..to all the commands that create markers.

-- 
Mathematics is the supreme nostalgia of our time.





More information about the Mercurial mailing list