/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 server.py

Move refs code to separate module.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
    NotBranchError,
26
26
    )
27
27
 
28
 
from bzrlib.plugins.git.branch import (
29
 
    branch_name_to_ref,
30
 
    ref_to_branch_name,
31
 
    )
32
28
from bzrlib.plugins.git.mapping import (
33
29
    default_mapping,
34
30
    )
35
31
from bzrlib.plugins.git.object_store import (
36
32
    get_object_store
37
33
    )
 
34
from bzrlib.plugins.git.refs import (
 
35
    branch_name_to_ref,
 
36
    ref_to_branch_name,
 
37
    )
38
38
 
39
39
from dulwich.server import (
40
40
    Backend,
77
77
                    branch.last_revision())
78
78
                assert type(ref) == str and type(ret[ref]) == str, \
79
79
                        "(%s) %r -> %r" % (branch.name, ref, ret[ref])
80
 
 
81
80
        finally:
82
81
            self.repo.unlock()
83
82
        return ret