/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/tests/test_commit.py

More fixes for unicode handling.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
from bzrlib.commit import Commit, NullCommitReporter
28
28
from bzrlib.config import (
29
29
    SIGN_ALWAYS,
30
 
    Stack,
 
30
    BranchStack,
31
31
    )
32
32
from bzrlib.errors import (
33
33
    PointlessCommit,
47
47
 
48
48
# TODO: Test commit with some added, and added-but-missing files
49
49
 
50
 
class MustSignConfig(Stack):
 
50
class MustSignConfig(BranchStack):
51
51
 
52
52
    def get(self, name):
53
53
        if name == "gpg_signing_command":
54
 
            return "cat -"
 
54
            return u"cat -"
55
55
        elif name == "signing_policy":
56
56
            return SIGN_ALWAYS
57
 
        return None
58
 
 
59
 
 
60
 
class BranchWithHooks(Stack):
 
57
        return super(MustSignConfig, self).get(name)
 
58
 
 
59
 
 
60
class BranchWithHooks(BranchStack):
61
61
 
62
62
    def get(self, name):
63
63
        if name == "post_commit":
64
64
            return "bzrlib.ahook bzrlib.ahook"
65
 
        return None
 
65
        return super(BranchWithHooks, self).get(name)
66
66
 
67
67
 
68
68
class CapturingReporter(NullCommitReporter):