-----------------------------------------------------------------
Revision: f67e1deae2f6fdf587ac3c25d198ba7d9601bbda
Ancestor: 869c31b158ccaf29b756e29adb585f082a063bda
Author: [email protected]
Date: 03/14/10 04:07:08
Branch: net.venge.monotone.experiment.changelog-editor
Modified files:
cmd_ws_commit.cc dates.cc dates.hh rev_output.cc
unit-tests/dates.cc
ChangeLog:
* cmd_ws_commit.cc (get_log_message_interactively): add date format to
signature; remove internal empty date format; update various error messages;
avoid comparison of results from string::find using >= since string::npos is
>= pretty much always; add check for modifications following summary of
changes; create constant strings around translated cert names and use these
to get correct lengths rather than possibly incorrect translated values;
parse the Date: header as a local time if a non-empty format was specified;
add FIXME's for a couple of small things
(status): check that the date format can be used to round-trip local dates
and warn if it cannot; ensure the changelog message loaded from _MTN/log
always ends in a newline
(commit): add --date-format and --no-format-dates options; check that the
date format can be used to round-trip local dates and fail if it cannot; pass
date format into get_log_message_interactively;
* dates.{cc,hh}: add some more things from the std:: namespace;
(date_t): fix wrapped line
(now) use MILLISEC to convert seconds to milliseconds
(as_formatted_localtime): add assertions that the time_t value converted from
milliseconds is within representable range;
(from_formatted_localtime): add new function to parse dates with specified
format strings
* rev_output.cc (revision_header): remove unnecessasry check for empty
changelog
* unit-tests/dates.cc (roundtrip_localtimes): add a test to format and parse
times within the limits of 32 bit time_t; also test times just outside of
this range and one other special case that mktime gets wrong;
monotone --db={your.database} diff
--revision=869c31b158ccaf29b756e29adb585f082a063bda
--revision=f67e1deae2f6fdf587ac3c25d198ba7d9601bbda
----------------------------------------------------------------------
_______________________________________________
Monotone-commits-nodiffs mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/monotone-commits-nodiffs