Eric Kow wrote:
On Wed, Mar 11, 2009 at 17:18:26 +0100, Peter Hercek wrote:
Right, that works well, thanks. What it does is not clear from "darcs
help annotate" but it works :)
Could we rope you into helping us write the documentation on that?
Ok, I had some problem with installing haskeline/terminfo so I given up
building and verifying it.
The patch is attached. It is public domain. Don't hesitate to commit as
yourself to save a bit of time :)
I think you want http://bugs.darcs.net/issue166
Yes, that would do it too. I do not recall any more how CVS annotate
output looked like but I think it was similar to git's one (commit info
at the start of each line). Since patch names can be long in darcs that
would mean to limit them. Probably first column being a space if the
line not affected by the selected patch, or + if line added by the
selected patch, or - when removed by the selected patch (as unified diff
does), then timestamp/date then lets say first 50 chars of the patch
name and then the source code. More details if needed can be retrieved
with "darcs changes".
Yeah, would be better.
Thanks,
Peter.
diff -rN -u old-darcs.net/src/Darcs/Commands/Annotate.lhs new-darcs.net/src/Darcs/Commands/Annotate.lhs
--- old-darcs.net/src/Darcs/Commands/Annotate.lhs 2009-03-11 19:35:49.495929216 +0100
+++ new-darcs.net/src/Darcs/Commands/Annotate.lhs 2009-03-11 19:35:49.915928876 +0100
@@ -70,7 +70,9 @@
annotate_help =
"Annotate displays which patches created or last modified a directory\n"++
"file or line. It can also display the contents of a particular patch\n"++
- "in darcs format.\n"
+ "in darcs format when no FILE/DIRECTORY is specified. You can annotate\n"++
+ "a file as it existed at some (historical) time when a single patch\n"++
+ "was recorded to it by selecting the patch.\n"
annotate :: DarcsCommand
annotate = DarcsCommand {command_name = "annotate",
_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users