~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
1861
1861
            "all are called with the url returned from the previous hook."
1862
1862
            "The order is however undefined.", (1, 9), None))
1863
1863
        self.create_hook(HookPoint('automatic_tag_name',
1864
 
            "Called to determine an automatic tag name for a revision. "
 
1864
            "Called to determine an automatic tag name for a revision."
1865
1865
            "automatic_tag_name is called with (branch, revision_id) and "
1866
1866
            "should return a tag name or None if no tag name could be "
1867
1867
            "determined. The first non-None tag name returned will be used.",
1958
1958
        return self.__dict__ == other.__dict__
1959
1959
 
1960
1960
    def __repr__(self):
1961
 
        return "<%s of %s>" % (self.__class__.__name__, self.branch)
 
1961
        if self.branch:
 
1962
            return "<%s of %s>" % (self.__class__.__name__, self.branch)
 
1963
        else:
 
1964
            return "<%s of format:%s bzrdir:%s>" % (
 
1965
                self.__class__.__name__, self.branch,
 
1966
                self.format, self.bzrdir)
1962
1967
 
1963
1968
 
1964
1969
class SwitchHookParams(object):