[PATCH] Strip out extraneous parts of the file path when doing a fetch from local repo

Patrick Mézard pmezard at gmail.com
Mon Mar 3 02:51:38 CST 2008


Alexis S. L. Carvalho a écrit :
> Thus spake Thomas Arendsen Hein:
>> * Jesse Glick <jesse.glick at sun.com> [20080302 19:45]:
>>> Anyway all this is just about a commit message, so perfection is 
>>> unnecessary. The trouble is that currently information about people's 
>>> private disk setups "leak" into public view, e.g.
>>>
>>>    http://hg.netbeans.org/main/rev/8c03dbfe61a7
>>>
>>> which is not very nice.
>> I'd vote for completely dropping paths for local repositories.
>> This can easily be checked with hg.islocal() or repo.local()
>>
>> The directory name might be private, too, e.g.
>> "fixes-for-customer-xyz" (or just "xyz", which might be as
>> problematic as the long name).
>>
>> On a second thought even http/ssh repos might contain private names,
>> so should the path be removed everywhere unless one configures fetch
>> to enable it?

+1
I have never found these messages really helpful. "Automated merge with http://hg.west.spy.net/hg/hacks/hg" doesn't look like a long lived repository, or something worth preserving in changelog.
 
> And what would the commit message look like?  Just "Automated merge." is
> not very useful...

What about using the revision author name: "Automated merge with Alexis S. L. Carvalho" ? And possibly the branch name if any ? Or the shortlog. That's redundant information but it might be useful when browsing the changelog from a non-GUI interface.

--
Patrick Mézard


More information about the Mercurial-devel mailing list