wrong username in log
Pete Brunet
pete at a11ysoft.com
Mon Nov 1 16:18:31 UTC 2010
Martin Geisler wrote:
> Pete Brunet <pete at a11ysoft.com> writes:
>
>
>> Martin Geisler wrote:
>>
>>> Pete Brunet <pete at a11ysoft.com> writes:
>>>
>>>
>>>
>>>> If I type 'hg log -r tip' the username is not correct. It's a quite
>>>> old user name that I used when I first started using Mercurial. This
>>>> old username is also showing up in NetBeans when I look at a files
>>>> history. The patch at tip was created some time after I changed the
>>>> username field in %USERPROFILE%\.hgrc and I don't have any other
>>>> conflicts in files like a mercurial.ini file, some other .hgrc file,
>>>> hgrc files in local directories, or a registry entry, e.g. I checked
>>>> the config files as described at
>>>> http://www.selenic.com/mercurial/hgrc.5.html
>>>>
>>>>
>>> Try
>>>
>>> $ hg showconfig --debug ui.username
>>>
>>> That will tell you where Mercurial has read the username -- maybe it has
>>> read it from some file you overlooked in the list.
>>>
>>>
>> H Martin, That shows the correct username - but trying hg log right
>> after shows the wrong username.
>>
>
> You did make a new commit, right?
>
> The username is part of the changeset -- that is what makes it possible
> for you to pull changesets from me and still have them show up in 'hg
> log' as 'Martin Geisler' and not 'Pete Brunet'. But this also means that
> old usernames wont update themselves just because you fix your
> configuration.
>
This is what I've done to date:
In my original work directory I had a set of changes that I didn't to
anything with regarding Mercurial (other than the original fclone). I
was asked to make a patch so I did the following:
cd ...\jdk7\jdk
hg init --mq // creates patch directory
hg add subdirs/file_name // add new file (for each of n files)
hg status // sanity check what's been added/modified
hg qnew -f patch_name // create the patch, -f needed the first time
... edit ...
hg qrefresh
Then I wanted to test the transfer of the patch (and I also wanted to
start with the latest code) so I did the following
md/cd c:\OpenJDK // a new directory
hg fclone http://hg.openjdk.java.net/jdk7/jdk7/ jdk7
cd ...\jdk7\jdk
hg init --mq // creates patch directory
hg qimport full_path_of_patch
hq qpush patch_name
The username might have been the old one when I did the first fclone,
but I had changed it by the time I created the patch (about a week ago).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20101101/e0f46c52/attachment.html>
More information about the Mercurial
mailing list