-----------------------------------------------------------------
Revision: 0db915193923a54f43d91a67688e2fc4f8641683
Ancestor: b6507424bfd15a90bfb016aa0056a583e4923678
Author: [email protected]
Date: 2010-04-19 09.54.31
Branch: net.venge.monotone
Added files:
tests/keep_valid_workspace_options_on_error/__driver__.lua
Added directories:
tests/keep_valid_workspace_options_on_error
Modified files:
cmd_automate.cc monotone.cc network/automate_session.cc
work.cc work.hh
ChangeLog:
Its always good to write a test case before making such changes... in this case
commands which did not require a workspace (like f.e. db init), but which were
still executed in some workspace overwrote its (valid) options!
* work.hh/cc: new static boolean "used" which is set to true as soon as
require_workspace() is called somewhere; new method maybe_set_options() which
only saves the options back to _MTN/options when a workspace has been found
_and_ also has actually been used.
* cmd_automate.cc, monotone.cc, network/automate_session.cc: ... use everywhere
and reset the used flag before the execution of the next command
monotone --db={your.database} diff
--revision=b6507424bfd15a90bfb016aa0056a583e4923678
--revision=0db915193923a54f43d91a67688e2fc4f8641683
----------------------------------------------------------------------
_______________________________________________
Monotone-commits-nodiffs mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/monotone-commits-nodiffs