bug: qpush loses loses file executable permissions
Alexis S. L. Carvalho
alexis at cecm.usp.br
Fri Nov 3 20:33:58 UTC 2006
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.
Alexis
More information about the Mercurial
mailing list