changeset evolution: lost amend

Pierre-Yves David pierre-yves.david at ens-lyon.org
Sun Jul 6 10:46:49 UTC 2014



On 07/05/2014 04:59 PM, anatoly techtonik wrote:
> Ok. Seems like again a problem of lost username.
> Should `hg commit --amend` check that username is set?

Yop. good catch.

>
> On Sat, Jul 5, 2014 at 5:52 PM, anatoly techtonik <techtonik at gmail.com> wrote:
>> Hi,
>>
>> I again shot myself in the foot with changeset evolution:
>>
>>    > hg ci
>>    > hg amend -e
>>    > hg glog  # amendment didn't record anything
>>    > hg out
>>    > hg amend -e
>>    warning: ignoring unknown working parent 65a3d892ee2f!
>>    abort: cannot amend public changesets
>>
>> Two questions.
>> 1. If amend was not recorded, then why it suddenly broke
>>      when executed 2nd time?
>> 2. There no trace of new commit, but I've found my message
>>      in .hg/last-message.txt
>> --
>> anatoly t.
>
>
>

-- 
Pierre-Yves David



More information about the Mercurial mailing list