/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 breezy/tests/commands/test_revert.py

  • Committer: Gustav Hartvigsson
  • Date: 2021-01-09 21:36:27 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20210109213627-h1xwcutzy9m7a99b
Added 'Case Preserving Working Tree Use Cases' from Canonical Wiki

* Addod a page from the Canonical Bazaar wiki
  with information on the scmeatics of case
  perserving filesystems an a case insensitive
  filesystem works.
  
  * Needs re-work, but this will do as it is the
    same inforamoton as what was on the linked
    page in the currint documentation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
import os
18
 
from bzrlib import (
 
18
from breezy import (
19
19
    branch,
20
20
    builtins,
21
21
    errors,
22
22
    lock,
23
23
    )
24
 
from bzrlib.tests import (
 
24
from breezy.tests import (
25
25
    transport_util,
26
26
    TestCaseInTempDir,
27
27
    )
38
38
        locks_acquired = []
39
39
        locks_released = []
40
40
        lock.Lock.hooks.install_named_hook('lock_acquired',
41
 
            locks_acquired.append, None)
 
41
                                           locks_acquired.append, None)
42
42
        lock.Lock.hooks.install_named_hook('lock_released',
43
 
            locks_released.append, None)
 
43
                                           locks_released.append, None)
44
44
 
45
45
        # execute the revert command (There is nothing to actually revert,
46
46
        # but locks are acquired either way.)
58
58
        # make sure that the locks are checkout locks.
59
59
        self.assertEndsWith(locks_acquired[0].lock_url, "/checkout/lock")
60
60
        self.assertEndsWith(locks_released[0].lock_url, "/checkout/lock")
61