[PATCH 0 of 6] Improve requirement error message
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Sat Jun 18 12:55:48 CDT 2011
On 18 juin 2011, at 13:09, Pierre-Yves David wrote:
> This series propose several improvements to the error message raise by missing
> requirements.
I forget to include sample output
Before:
> abort: unknown repository format: requires feature 'dotencode' (upgrade Mercurial)
This series proposal:
> abort: Mercurial 1.6.4 can not read this local repository!
> It requires features: 'dotencore', 'generaldelta'.
> (see http://mercurial.selenic.com/wiki/RequiresFile for details)
Variation people might prefer:
1) swap line
> abort: repository requires features: 'dotencore', 'generaldelta',
> Mercurial 1.6.4 can not read this local repository.
> (see http://mercurial.selenic.com/wiki/RequiresFile for details)
2) Longer more explicite version
> Mercurial 1.6.4 can not read this local repository created with a newer mercurial version.
We may even add an informative file with the version of mercurial used when creating a repo to display
> Mercurial 1.6.4 can not read this local repository created with a newer mercurial version (1.9.1)
--
Pierre-Yves
ps: thanks for patches review.
More information about the Mercurial-devel
mailing list