On Wed, Oct 31, 2007 at 05:04:15PM +0100, Ralf S. Engelschall wrote:
> On Wed, Oct 31, 2007, [EMAIL PROTECTED] wrote:
> 
> > * cmd_diff_log.cc (print_indented_set): Replace the empty string printed
> >   for the project root with a single dot.
> > * tests/merge_into_workspace: Fix test accordingly.
> 
> Thanks. Can you also apply something similar to the output of mtn stat"?
> There one has a similar nice output like "attr on \n" instead of "attr
> on ."

It's more confusing on stat, since stat can be called from
subdirectories of the root... of course, it always gives paths
relative to the root anyway, so at least it would still be consistent.

My suggestion for this has been to have a uniform function for
formatting paths for user display (in log, stat, etc.), that would
look like: 
   file_path("foo") -> "'foo'"
   file_path("foo bar") -> "'foo bar'"
   file_path("") -> "'' (the root directory)"
(The uniform function part is probably more important than the exact
output, because the output is easy to tweak once it's been centralized
to one point in the code.)

-- Nathaniel

-- 
"But suppose I am not willing to claim that.  For in fact pianos
are heavy, and very few persons can carry a piano all by themselves."


_______________________________________________
Monotone-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/monotone-devel

Reply via email to