Distinguish between a changeset author and the user who actually pushed a change

Alejandro E Murillo alejandro.murillo at oracle.com
Tue Jan 26 02:24:25 UTC 2016


On 1/25/2016 11:58 AM, Volker Simonis wrote:
> Hi,
>
> is it possible to distinguish the actual user who pushed a change from
> the author of that change (i.e. the one who is mentioned in the 'user'
> field of the change set).
>
> For example for the following change:
>
> https://bugs.openjdk.java.net/browse/JDK-8146979
>
> the bug system correctly reports:
>
> URL: http://hg.openjdk.java.net/jdk8u/jdk8u-dev/hotspot/rev/c649dde41041
> User: dholmes
> Date: 2016-01-14 03:18:30 +0000
>
> as this change was pushed by the user 'dholmes'. But looking at the
> actual changeset
> (http://hg.openjdk.java.net/jdk8u/jdk8u-dev/hotspot/rev/c649dde41041)
> reports:
>
> user:        simonis
> date:        Wed Jan 13 20:47:17 2016 -0500
>
> which is also correct, because the user 'simonis' is the actual author
> of that change.
>
> Is it possible to get both these users (i.e. the user who pushed and
> the user who authored the change) from a plain Mercurial clone of the
> OpenJDK?
>
> Thank you and best regards,
> Volker
  hgupdater receives both the pusher and author usernames,
and it uses the pusher's to create the log in JBS.

looks to me like the username of the pusher is determined by the hook
(from the ssh user name I suspect. I didn't check the details)
and sent to hgupdater along with the changeset's author,
but mercurial itself does not seem to care about the pusher's username,
so it's not persisted in the repo.
In General -pv shows a lot more info about a changeset, but the pusher
is not included, so I don't think is persisted

I suspect the use of the pusher by hgupdater was deliberate,
in order to keep track of the actual pusher,
otherwise it wouldn't be recorded anywhere

-- 
Alejandro



More information about the hg-tools-dev mailing list