monotone

monotone Mtn Change Log

Age Message
9 days 7 hours Correct negative timestamps in git_export.

* src/git_export.cc: as_millisecs_since_unix_epoch may yield negative
values which git doesn't like much. As commit dates before 1970 are
bogus anyways, it seems okay to just set those to zero.
13 days 18 hours Eliminate more compiler warnings (by gcc 6.3)

* src/{cmd,rcs_file}.cc: properly mark destructors that throw. (The
default for destructors has changed to noexcept with C++11.)
13 days 18 hours Eliminate a compiler warning (by gcc 6.3)

* test/unit/tests/xdelta.cc: Correct indentation.
1 year 2 months Tiny little refactoring step.

* src/work.cc: replace some loops to use C++11, simplify.
1 year 2 months Simplify the status command in preparation for fixing suspend certs info.

* src/cmd_ws_commit.cc: combine the two per-branch reporting sections into
a single common method. Merge the former div_heads and newer_heads
maps into a single heads map with per-head revision status
information. Properly collect suspend certs and filter suspended
branches. Use project.get_branch_heads rather than maintaining
another instance of some graph traversal algorithm copied from
automate.cc. Drop the unused is_head flag of the parent_state struct.
* src/project.cc: add one more detail to a debug message.
1 year 4 months * Makefile.am: protect against a syntax error from cp.
1 year 4 months * test/func/log_dir/__driver__.lua: increase verbosity of test log
1 year 5 months Try reducing intermittent test failures.

* test/func/log_dir/__driver__.lua: add --no-colorize to ensure this
doesn't cripple outputs we rely on.
1 year 5 months Correct musings after breakage in 3b095cd7bd34c75440f7203179a21eb4b53096db.

* src/sanity.hh: Split the Musing class into MusingRval and MusingRef
for the two different use cases, correct MM macro.
* src/sanity.cc: minor simplification
1 year 5 months Eliminate an llvm compiler warning.

* src/sanity.hh: in the real_M magro for musings, add a couple of
parens to ensure this is interpreted as a variable declaration (and
not a function).
1 year 5 months Eliminate some more memory leaks found with an address sanitizer.

* src/sanity.cc: turn the list of pointers to musings into a list of
managed pointers to keep track of all musings.
* src/sanity.hh: drop MusingI and the remove_reference class; note
that C++ issue #106 is marked resolved by now. Instead, add a
ScopedMusing helper class. Adjust MM and PERM_MM macros, turning
PERM_MM into something that 'eats' the object given.
1 year 5 months Eliminate some more memory leaks found with an address sanitizer.

* src/app_state.{cc,hh}: store managed pointers to option_applicators
in the app_state, so these are cleaned up properly.
* src/cmd.cc: use the above feature to avoid a (formerly intentional)
memory leak.
* src/options_applicator.{cc,hh}: move the definition of the
option_applicatior_impl to the header file, link the implementation
object via a unique_ptr.
1 year 5 months Eliminate a couple of memory leaks found with an address sanitizer.

None of these are crucial, but being able to compile and run with an
address sanitizer enabled might be useful.

* src/luaext_platform.cc: in spawn_pipe, free argv memory upon
erroneous invocation.
* src/unix/terminal.cc: comment out the unused 'PAGER' environment
variable, do not allocate memory for pager_args, but use a static
constant.
* src/options_list.hh: simplify help text for move_conflicting_paths
to eliminate another memory leak.
1 year 5 months Correctly interpret negative numbers for Sqlite's default_cache_size.

* src/database.cc: looks like there could have been negative numbers
forever, but since Sqlite v3.7.10, they are interpreted
differently. And on at least one system a negative number now is the
default.
1 year 5 months Revert 1dce90712ef7b383c41c993617d54b2b21ead743 (the posix_spawn vs vfork).
1 year 5 months Eliminate a compiler warning.

* src/unix/main.cc: be more explicit about ignoring the return value
of a write call.
1 year 5 months Properly declare the global environ, should fix the build on BSD.

* src/unix/process.cc: declare environ.
1 year 5 months merge of '1dce90712ef7b383c41c993617d54b2b21ead743'

and '7001039b36b14c7a7d8933d73f3237afda597ec9'
1 year 7 months Split network portion of db_opt_fallback_mechanisms into its own test.
1 year 7 months Add rvalue variants of lowercase and uppercase.
1 year 7 months Cleanup and simplify a bit.

* src/project.hh: use constants rather than macros for cert_names,
change guess_branch.
* src/project.cc: let guess_branch return its result, drop a
variant of guess_branch that writes its result to the options.
* src/cmd_ws_commit.cc: use C++11 for loop, adjust to
guess_branch, use rev_id rather than revid
* src/cmd_{diff_log,list,rev_output}.cc: drop extra cert_name
variables, use the ones provided by project.hh
* src/cmd_key_cert.cc: use rev_id rather than r as a variable
name
* src/network/netsync_session.cc: simplify a bit, use C++11 for
loop
1 year 7 months Correct a test after adding a detail to a user-facing message.

* test/func/move_conflicting_unversioned/__driver__.lua: rather
than 'conflicting path' it's 'conflicting file', now.
1 year 7 months Correct updates with (potentionally conflicting) special files.

* src/work.cc: let the workspace_itemizer treat special files like
regular ones, so that perform_content_update works and conflicts on
existing special files - or moves them if --move-conflicting-paths.
* test/func/update_with_special_file: add a test to cover this case
1 year 7 months Allow non-regular files to appear in the workspace.

* src/platform.hh: add 'special' to the path::status enum.
* src/unix/fs.cc: use that rather than bailing out on special files
* src/file_io.{cc,hh}: add a visitor method for non-regular files to
the tree_walker, add a message_if_special to the
require_path_is_file and require_path_is_directory methods, add
appropriate error messages where necessary.
* src/work.hh: add a file_items struct carrying the result of the
find_unknown_and_ignored function
* src/work.cc: let the file_itemizer collect special files as well,
modify it to not work on references of sets, but let it assemble the
sets and return them via via consume_tree_status. Ensure the
addition_builder (another tree walker) and perform_additions both
still err out on special files, except if ignored. In
editable_working_tree::attach_node, move special files as well.
* src/automate.cc: tweak automate inventory to list non-regular files
as either unknown or ignored.
* src/cmd_list.cc: extend get_unknown_ignored and rename to match with
an equivalent function in work.cc. Let these functions return their
result. Change 'list unknown' to include unknown special files.
* src/cmd_ws_commit.cc: prevent addition of special files.
* src/platform-wrapped.hh: drop the special_file_error handler and the
simplified read_directory variant.
* src/{cmd_othervcs,database,lua,lua_hooks,luaext_platform,
merge_content,paths,rcs_import}.cc, test/src/tester.cc: minor
adjustments
* NEWS: mention this new feature
* test/func/special_files/*: add a test to cover the most important
aspects on unixoid systems.
1 year 10 months * src/rev_output.cc: Use the 'change' color for attribute changes.

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status