/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/uncommit.py

  • Committer: John Arbash Meinel
  • Date: 2009-12-02 17:49:45 UTC
  • mto: This revision was merged to the branch mainline in revision 4854.
  • Revision ID: john@arbash-meinel.com-20091202174945-80ack0gu7j8j8mqm
Change the LockDir code to use get_bytes rather than get().

If we are always going to read all the bytes anyway, this is better for
apis. Also, get_bytes() always closes the file handle in a finally block,
rather than doing it asynchronously through the deconstructors.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
# TODO: make the guts of this methods on tree, branch.
20
20
 
 
21
import os
 
22
 
21
23
from bzrlib import (
22
24
    errors,
23
25
    revision as _mod_revision,