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

  • Committer: Matt Nordhoff
  • Date: 2007-11-30 02:43:40 UTC
  • mto: This revision was merged to the branch mainline in revision 3065.
  • Revision ID: mnordhoff@mattnordhoff.com-20071130024340-a6y1fh1bbibv17r6
Deprecate not passing a location to commit reporters' started() methods.

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
    """I report on progress of a commit."""
92
92
 
93
93
    def started(self, revno, revid, location=None):
 
94
        if location is None:
 
95
            symbol_versioning.warn("As of bzr 0.93 you must pass a location "
 
96
                                   "to started.", DeprecationWarning,
 
97
                                   stacklevel=2)
94
98
        pass
95
99
 
96
100
    def snapshot_change(self, change, path):
135
139
        if location is not None:
136
140
            location = ' to: ' + unescape_for_display(location, 'utf-8')
137
141
        else:
 
142
            # When started was added, location was only made optional by
 
143
            # accident.  Matt Nordhoff 20071129
 
144
            symbol_versioning.warn("As of bzr 0.93 you must pass a location "
 
145
                                   "to started.", DeprecationWarning,
 
146
                                   stacklevel=2)
138
147
            location = ''
139
148
        self._note('Committing%s', location)
140
149