bug: qpush loses loses file executable permissions

Giorgos Keramidas keramida at ceid.upatras.gr
Fri Nov 3 14:41:39 CST 2006


On 2006-11-03 17:33, "Alexis S. L. Carvalho" <alexis at cecm.usp.br> wrote:
>Thus spake Armando Singer:
>>> I'm saying this because I commonly use Mercurial for my own personal
>>> work, and then export diffs which are applied with gpatch(1) on Perforce
>>> workspaces.  Using --git format patches by default in MQ would break
>>> this, and I would have to *disable* --git patches to make them usable
>>> for this sort of workflow.
>>
>> This sounds like a nice-to-have. One could turn off the git diff
>> setting before exporting when working with an external tool (or use
>> mpatch).
>>
>> On the other hand, IMO, keeping file mode info, etc. within hg/mq is
>> fundamental. One should not have to think about whether one only wants
>> to perform certain operations on plain text vs do anything that hg
>> supports. It should either "just work" with no extra config, or (for
>> backward compatibility), at least warn of possible data loss.
>
> With current tip, you can use:
>
> [defaults]
> qrefresh = --git
>
> You still have to change your .hgrc, and the patch in .hg/patches will
> use the git extended format, but hg export will give you a regular
> gpatch-compatible diff by default.

Excellent advice!  This is probably all I need to make MQ usable across
renames in my mixed environment of Perforce and Mercurial.

Thank you :)))



More information about the Mercurial mailing list