Force user to be System user?
Douglas Philips
dgou at mac.com
Thu Aug 6 21:56:51 UTC 2009
On or about 2009 Aug 6, at 5:40 PM, Michael Thomas indited:
> I should have been more clear. I was thinking of a situation where
> there is a central repository that the user is pushing to. So, if
> for example I was pushing to ssh://fred@foo.com/repo hg would use
> fred as the user making the change rather than a random user I might
> specify using -u. In that case you at least see where a "real" user
> made the integration into the central repository.
Hmm, well, that isn't how Mercurial works.
By the time you are pushing a changeset, it is a complete and whole
thing. There is no notion of augmenting the changeset itself with who
pushed it. The changeset is a hash over all the changes, the time
stamp, the user, etc. so if those things are modified, the hash
doesn't match.
It seems your out of the box solution is to have Bob sign his work (or
that he is vouchsafing someone else's changes, since after all, just
knowing that Bob pushed something does not tell you squat Jack, er,
squat Bob, about the changes themselves). Probably doesn't need to
sign every single changeset though. Not out of the box you're free to
come up with another mechanism that fits your tracking needs. No other
Mercurial extensions come to mind, but there are a lot of them...
-Doug
More information about the Mercurial
mailing list