~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 2255.4.2.

  • Committer: James Westby
  • Date: 2007-02-22 22:45:49 UTC
  • mto: (2255.5.1 dirstate)
  • mto: This revision was merged to the branch mainline in revision 2322.
  • Revision ID: jw+debian@jameswestby.net-20070222224549-16u0yxrdrqg3vgpg
(broken) Add the locking methods.

  * Callers should now use lock_read and lock_write before they do
    anything with dirstate.
  * You can only grab a single lock on the object, and can't unlock it
    if not locked.
  * initialize now returns a writelocked object to the caller.
  * This breaks the tests massively, sorry, as they need to do locking now.
    - Currently the main problem is the dirstate never being flushed to disk,
      so all tests trip the assertion that the header is incorrect.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: