/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 gitlib/git_branch.py

All tests are passing again

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
    )
24
24
from bzrlib.decorators import needs_read_lock
25
25
 
 
26
from bzrlib.plugins.git.gitlib import ids
 
27
 
26
28
 
27
29
class GitBranchConfig(config.BranchConfig):
28
30
    """BranchConfig that uses locations.conf in place of branch.conf"""
70
72
    @needs_read_lock
71
73
    def revision_history(self):
72
74
        node = self.last_revision()
 
75
        if node == revision.NULL_REVISION:
 
76
            return []
73
77
        ancestors = self.repository.get_revision_graph(node)
74
78
        history = []
75
79
        while node is not None: