[darcs-devel] Re: Darcs stable and hashed inventories?
David Roundy
droundy at darcs.net
Mon Jan 1 12:00:17 PST 2007
On Sun, Dec 31, 2006 at 09:37:09PM +0100, Tommy Pettersson wrote:
> On Wed, Dec 27, 2006 at 11:29:35PM +0100, Juliusz Chroboczek wrote:
> > I haven't checked if you've already done that -- but I think it would
> > be a good idea to add code to the stable branch to give a useful error
> > message when it encounters a repo with a hashed repository. Tommy,
> > would you be willing to hold off 1.0.9 until that happens?
>
> I just checked, and current darcs-stable fails on hashed repos
> with various error messages, like:
>
> $ darcs what
> darcs failed: Unable to "darcs whatsnew" here.
> You need to be in a repository directory to run this command.
[...]
> A short "not supported by this version" will probably make life
> a lot less confusing for users.
Agreed. When I've got time, I'll code up a revamp of the
repository-identification code that only looks for _darcs/ or perhaps
_darcs/format rather than looking for _darcs/inventory. Or someone else
could volunteer. I believe that we *ought* to have decent error messages,
provided darcs recognizes the hashed repository as a hashed repository
(which is what the format business is designed for).
--
David Roundy
http://www.darcs.net
More information about the darcs-devel
mailing list