/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/missing.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:
16
16
 
17
17
"""Display what revisions are missing in 'other' from 'this' and vice versa."""
18
18
 
19
 
from __future__ import absolute_import
20
 
 
21
19
from . import (
22
20
    errors,
23
21
    log,
63
61
    """
64
62
    if include_merged is None:
65
63
        include_merged = False
66
 
    local_branch.lock_read()
67
 
    try:
68
 
        remote_branch.lock_read()
69
 
        try:
70
 
            return _find_unmerged(
71
 
                local_branch, remote_branch, restrict=restrict,
72
 
                include_merged=include_merged, backward=backward,
73
 
                local_revid_range=local_revid_range,
74
 
                remote_revid_range=remote_revid_range)
75
 
        finally:
76
 
            remote_branch.unlock()
77
 
    finally:
78
 
        local_branch.unlock()
 
64
    with local_branch.lock_read(), remote_branch.lock_read():
 
65
        return _find_unmerged(
 
66
            local_branch, remote_branch, restrict=restrict,
 
67
            include_merged=include_merged, backward=backward,
 
68
            local_revid_range=local_revid_range,
 
69
            remote_revid_range=remote_revid_range)
79
70
 
80
71
 
81
72
def _enumerate_mainline(ancestry, graph, tip_revno, tip, backward=True):