[darcs-users] On "darcs annotate foo/"
Eric Kow
kowey at darcs.net
Wed Sep 30 20:13:07 UTC 2009
On Sun, Sep 20, 2009 at 20:38:21 +1000, Trent W. Buck wrote:
> The documentation indicates that "darcs annotates foo/" -- that is,
> file and directory in foo/ (including foo/. itself).
Hmm... I think I see what you mean
(1) darcs changes --summary --reverse
-------------------------------------
Wed Sep 30 18:55:14 BST 2009 Eric Kow <E.Y.Kow at brighton.ac.uk>
* add d
A ./d/
Wed Sep 30 18:55:38 BST 2009 Eric Kow <E.Y.Kow at brighton.ac.uk>
* Add d/foo
A ./d/foo
Wed Sep 30 18:56:33 BST 2009 Eric Kow <E.Y.Kow at brighton.ac.uk>
* modify d/foo
M ./d/foo +1
(2) darcs annotate d/
---------------------
# Created by [add d
# Eric Kow <E.Y.Kow at brighton.ac.uk>**20090930175514
Ignore-this: 6498898a9429ea6555d832c8c129edfb
] as ./d/
d/
# Created by [Add d/foo
# Eric Kow <E.Y.Kow at brighton.ac.uk>**20090930175538
Ignore-this: 196b2edec91d4d739a9884c7dfc0d374
] as ./d/foo
foo File modified
On the other hand, I get 'foo File modified' which you don't
seem to.
(3) darcs changes --summary --reverse
-------------------------------------
new patches...
Wed Sep 30 18:57:20 BST 2009 Eric Kow <E.Y.Kow at brighton.ac.uk>
* mv d/e
./d -> ./e
Wed Sep 30 18:58:56 BST 2009 Eric Kow <E.Y.Kow at brighton.ac.uk>
* e/bar
A ./e/bar
(4) darcs annotate e/
---------------------
# Created by [add d
# Eric Kow <E.Y.Kow at brighton.ac.uk>**20090930175514
Ignore-this: 6498898a9429ea6555d832c8c129edfb
] as ./d/
e/
# Created by [e/bar
# Eric Kow <E.Y.Kow at brighton.ac.uk>**20090930175856
Ignore-this: 52fe5b0deaee42cb3737d1fc3c979e77
] as ./e/bar
bar File added
# Created by [Add d/foo
# Eric Kow <E.Y.Kow at brighton.ac.uk>**20090930175538
Ignore-this: 196b2edec91d4d739a9884c7dfc0d374
] as ./d/foo
foo
Huh! No file modified. Was darcs annotate confused by the move of the
underlying directory?
Doing more experiments with this, I get the impression that darcs annotate is
pretty fragile with respect to moves :-( Instead of moving d to e, first
try moving foo to bar. Then trying moving d to e.
Rather different results.
I think you could mine this for a bug report or two...
--
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-users/attachments/20090930/343edfb3/attachment.pgp>
More information about the darcs-users
mailing list