/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: Jelmer Vernooij
  • Date: 2019-03-05 07:32:38 UTC
  • mto: (7290.1.21 work)
  • mto: This revision was merged to the branch mainline in revision 7311.
  • Revision ID: jelmer@jelmer.uk-20190305073238-zlqn981opwnqsmzi
Add appveyor configuration.

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
 
19
21
from . import (
20
22
    errors,
21
23
    log,
61
63
    """
62
64
    if include_merged is None:
63
65
        include_merged = False
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)
 
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()
70
79
 
71
80
 
72
81
def _enumerate_mainline(ancestry, graph, tip_revno, tip, backward=True):