# # add_file "tests/t_restricted_diff_unchanged.at" # # patch "ChangeLog" # from [36b3ee0ff5fb9824aebe6856cc2860eaf2f0d238] # to [ea2b89d5b00d53f64a81273c24c3dfbf87f1ff10] # # patch "rcs_import.cc" # from [9a42135b663a3f926d78159eb765e19014ece69c] # to [678b970e6558c90e785b69ab44beeb67423c756f] # # patch "tests/t_restricted_diff_unchanged.at" # from [] # to [aa1b5c9d50296b24e69a619088806821993b7c1a] # # patch "testsuite.at" # from [35beb1e1f80eab0411f3bd2783d34a989062e82c] # to [ab14f67b36bdae6519026513aac992bb0d6e9e2c] # --- ChangeLog +++ ChangeLog @@ -1,3 +1,241 @@ +2005-07-13 Nathaniel Smith + + * tests/t_restricted_diff_unchanged.at: New test. + * testsuite.at: Add it. + +2005-07-13 graydon hoare + + * rcs_import.cc (cvs_branch::cvs_branch): Initialize bools to false. + +2005-07-13 Nathaniel Smith + + * monotone.texi (Database): Document kill_tag_locally. + +2005-07-13 Nathaniel Smith + + * tests/t_kill_tag_locally.at, tests/t_ambiguous_tags.at: New + tests. + * testsuite.at: Add them. + +2005-07-11 graydon hoare + + * AUTHORS: Add Jordan. + * commands.cc (ls_tags): Do not uniquify tags. + * constants.{cc,hh} (cvs_window): Change to time_t, tighten to 5 minutes. + * rcs_import.cc (window): Remove. + (note_type): Remove dead code. + (is_sbr): Add test for synthetic branch roots. + (cvs_commit::is_synthetic_branch_root): New test. + (process_branch): Skip synthetic branch roots, push new branch + before picking branch to mark, rather than after. + (cvs_history::index_branchpoint_symbols): Handle vendor branches. + (cvs_history::push_branch): Do not duplicate root on private branches. + (import_branch): Fix up cluster inference. + (cluster_consumer::consume_cluster): New invariant. + * tests/t_cvsimport_drepper2.at: Modify to reflect fixes. + +2005-07-11 Jordan Breeding + + * commands.cc (db): New subcommand "kill_tag_locally" + * database.{cc,hh} (delete_tag_named): New function. + +2005-07-12 Nathaniel Smith + + * schema_migration.cc (migrator::migrate): When there is nothing + to be done, do nothing. + +2005-07-12 Nathaniel Smith + + * netsync.cc (rebuild_merkle_trees): Reduce memory usage a bit, + and don't insert branch certs that the other side will just end up + throwing away (reduces network traffic). + +2005-07-12 Nathaniel Smith + + * testsuite.at (NETSYNC_SERVE_START, NETSYNC_SERVE_N_START): + Really, really really fix up quoting. Really. + I hope. + +2005-07-12 Nathaniel Smith + + * contrib/ciabot_monotone.py (config.project_for_branch): Clarify + comment text for non-Python programmers. + +2005-07-12 Nathaniel Smith + + * testsuite.at (NETSYNC_SERVE_START, NETSYNC_SERVE_N_START): Fixup + quoting. + +2005-07-11 Nathaniel Smith + + * crypto_tests.cc: New SHA1 correctness tests from Kaushik Veeraraghavan. + * unit_tests.cc (init_unit_test_suite): + * unit_tests.hh (add_crypto_tests): + * Makefile.am (unit_tests_SOURCES): Call them. + * AUTHORS: Add Kaushik Veeraraghavan. + +2005-07-11 Nathaniel Smith + + * tests/t_netsync_exclude_default.at: New test. + * testsuite.at: Add it. + (NETSYNC_SERVE_N_START, NETSYNC_SERVE_START): Use '*' as pattern + when none is passed. + +2005-07-11 Nathaniel Smith + + * monotone.texi (Network): Tweak documentation for netsync + commands. + +2005-07-11 Nathaniel Smith + + * app_state.{hh,cc} (exclude_patterns, add_exclude): + * options.hh (OPT_EXCLUDE): + * monotone.cc (coptions, cpp_main): New option --exclude. + * commands.cc (pull, push, sync, serve): Accept it. + (process_netsync_args): Implement it. + * tests/t_netsync_exclude.at: New test. + * testsuite.at: Add it. + +2005-07-11 Timothy Brownawell + + * options.hh, app_state.{hh,cc}, monotone.cc: New command specific + option, "--exclude=x", puts arg into a vector app.excludes . + Used by the netsync commands. + * commands.cc (netsync commands): accept said option + (process_netsync_args): Handle excludes. + * monotone.texi: document it + +2005-07-11 Timothy Brownawell + + * interner.hh: make slightly faster + +2005-07-10 Nathaniel Smith + + * ChangeLog, configure.ac: Re-remove mysteriously revived + jibberish. + +2005-07-10 Nathaniel Smith + + * tests/t_netsync_read_permissions.at: New test. + * testsuite.at: Run it. + * netsync.cc (set_session_key, dispatch_payload) + (respond_to_auth_cmd): Refactor to key HMAC earlier, so error + packets will get the right HMAC. + +2005-07-10 Richard Levitte + + * Makefile.am (monotone_CPPFLAGS, unit_tests_CPPFLAGS): Re-remove + previously removed stuff. + + * ChangeLog, configure.ac: Revert accidentally-recommitted changes. + +2005-07-10 Richard Levitte + + * monotone.texi (Network), monotone.1: Mention the default port + number. + +2005-07-10 Matthew Gregan + + * configure.ac: Check for boost >= 1.32. + +2005-07-09 Nathaniel Smith + + * schema.sql (revision_ancestry__child, revision_certs__id, + revision_certs__name_value): New indexes. + * database.cc (dump, dump_table_cb, dump_index_cb): Include + indexes in dumps. + (database::database): + * schema_migration.cc (migrate_monotone_schema) + (migrate_client_to_add_indexes): + * tests/t_migrate_schema.at: Corresponding migration gunk. + +2005-07-09 Jordan Breeding + + * Makefile.am (monotone_CPPFLAGS, unit_tests_CPPFLAGS): + * configure.ac (BOOST_FIX_VERSION): Restrict boost compile kluges + to boost 1.32. + +2005-07-09 Nathaniel Smith + + * schema_migration.cc (calculate_schema_id): Include indexes in + the schema id. + +2005-07-09 Nathaniel Smith + + * ChangeLog, configure.ac: Revert accidentally-committed changes. + +2005-07-09 Nathaniel Smith + + * monotone.texi (Generating Keys): Make it a little clearer that + we aren't necessarily recommending people store their passphrase + in plaintext. + +2005-07-08 Matt Johnston + + * tests/t_normalized_filenames.at: expect exit code of 1 not 3 for + "cat manifest" with a directory in MT/work + * file_io.cc, netcmd.cc, transforms.cc, vocab.hh: revert changes which + used swap() for strings and atomic types since strings are + copy-on-write. + +2005-07-08 Matt Johnston + + * file_io.cc (ident_existing_file): new function to calculate + the ident of a file failing gracefully if it doesn't exist + or is a directory. + * file_io.hh (classify_manifest_paths, + build_restricted_manifest_map): use ident_existing_file + * ui.cc: cast to avoid compiler warnings + +2005-07-07 Nathaniel Smith + + * contrib/ciabot_monotone.py (Monotone.log): Fix to work with + 0.20. + +2005-07-07 Nathaniel Smith + + * Makefile.am (monotone_CPPFLAGS, unit_tests_CPPFLAGS): Add + -DBOOST_REGEX_V4_CHAR_REGEX_TRAITS_HPP to work around g++ + 4.0/boost 1.32.0 lossage. + +2005-07-07 Vaclav Haisman + + * Makefile.am: Compile fix for FreeBSD. + +2005-07-07 Nathaniel Smith + + * netsync.cc (process_hello_cmd, process_anonymous_cmd) + (process_auth_cmd): Change permission checking -- always build + merkle tree (even when a pure sink), send permission denied and + abort whenever client tries to read/write a branch they don't have + access to. + +2005-07-07 Nathaniel Smith + + * ChangeLog: fixup formatting. + +2005-07-06 Matt Johnston + + * database.cc (assert_sqlite3_ok): database corruption and similar + problems are errors, not invariants. + +2005-07-06 Nathaniel Smith + + * commands.cc (push, pull, sync): Fix --help description. + +2005-07-06 Nathaniel Smith + + * options.hh (OPT_SET_DEFAULT): + * app_state.{hh,cc} (app_state::set_default): + * monotone.cc (coptions, cpp_main): New option. + * commands.cc (pull, push, sync): Accept it. + (process_netsync_args): Use it. + * tests/t_set_default.at, testsuite.at: New test. + +2005-07-07 Matthew Gregan + + * win32/monotone.iss: Bump version number. + 2005-07-13 Derek Scherger * database.cc (debug): delete stale comment --- rcs_import.cc +++ rcs_import.cc @@ -92,7 +92,9 @@ vector lineage; cvs_branch() - : last_branchpoint(0), + : has_a_branchpoint(false), + has_a_commit(false), + last_branchpoint(0), first_commit(0) { } --- tests/t_restricted_diff_unchanged.at +++ tests/t_restricted_diff_unchanged.at @@ -0,0 +1,23 @@ +AT_SETUP([diff -rREV1 -rREV2 UNCHANGED-FILE]) +MONOTONE_SETUP + +# This test is a bug report. The problem appears to be in +# calculated_restricted_change_set, as called by do_diffs; it passes a +# very sparse valid_paths argument to app.set_restriction. +AT_XFAIL_IF(true) + +ADD_FILE(testfile, [blah blah +]) +ADD_FILE(otherfile, [foo bar +]) +COMMIT(testbranch) +R1=`BASE_REVISION` + +SET_FILE(otherfile, [stuff stuff +]) +COMMIT(testbranch) +R2=`BASE_REVISION` + +AT_CHECK(MONOTONE diff -r$R1 -r$R2 testfile, [], [], [ignore]) + +AT_CLEANUP --- testsuite.at +++ testsuite.at @@ -671,3 +671,4 @@ m4_include(tests/t_netsync_exclude_default.at) m4_include(tests/t_ambiguous_tags.at) m4_include(tests/t_kill_tag_locally.at) +m4_include(tests/t_restricted_diff_unchanged.at)