[darcs-users] Re: Annotate doesn't recognize anything

Matthew Palmer mpalmer at hezmatt.org
Wed Aug 8 23:39:34 UTC 2007


[Sorry if the threading is all mangled, I'm replying out of the archives]

Alexander Staubo wrote:
> This is a partial repository, in case it matters. However, annotate is
> supposed to work fine with partial repos.

I think that's your problem.  I've just made my first partial repo, and
annotate doesn't work right, with exactly the problem you've described. 
It's simple to reproduce (without needing trade secrets!):

$ mkdir x
$ cd x
$ touch a
$ darcs init
$ darcs add a
$ darcs record --all -m "a"
...
$ echo foo >> a
$ darcs record --all -m "foo"
$ darcs tag --checkpoint cp
$ cd ..
$ darcs get --partial x y
$ cd y
$ ls
a  _darcs/
$ darcs annotate a
darcs failed:  There is no file or directory named 'a'

(all run with darcs 1.0.8)

Since operations that need a patch which isn't available in the partial repo
are documented to fail, I don't see it as a bug that annotate fails, but I
certainly think the error message could be less confusing...

- Matt



More information about the darcs-users mailing list