Some users are complaining to me about one of my tools emitting
scary-looking warnings:
http://tahoe-lafs.org/pipermail/tahoe-dev/2010-September/005131.html
Part of the problem is that darcs emits the following ugly-looking
message when you run "darcs changes" in a directory with no _darcs
subdirectory:
darcs failed: Not a repository: . (./_darcs/inventory: openBinaryFile:
does not exist (No such file or directory))
Compare to what darcs emits if you run "darcs query repo" in the same
directory:
darcs failed: Unable to "darcs query repo" here.
You need to be in a repository directory to run this command.
To close this ticket, make "darcs changes" emit a message similar to the
one "darcs query" emits, saying that you need to be in a repository
directory to run this command.
(Note: I have now changed my tool so that it doesn't execute "darcs
changes" at all if an exploratory "darcs query repo" doesn't first
return exit code 0, thus prevent my users from seeing this error
message, but it would still be nice to tidy this up.)
|