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

Fix printing error when user attempts to push into git.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
    GitBranchConfig,
45
45
    )
46
46
from bzrlib.plugins.git.errors import (
 
47
    NoPushSupport,
47
48
    NoSuchRef,
48
49
    )
49
50
 
412
413
        return (not isinstance(source, GitBranch) and 
413
414
                isinstance(target, GitBranch))
414
415
 
 
416
    def push(self, overwrite=True, stop_revision=None, 
 
417
             _override_hook_source_branch=None):
 
418
        raise NoPushSupport()
 
419
 
415
420
    def lossy_push(self, stop_revision=None):
416
421
        if stop_revision is None:
417
422
            stop_revision = self.source.last_revision()