/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/blackbox/test_log.py

  • Committer: Guillermo Gonzalez
  • Date: 2008-03-04 17:03:13 UTC
  • mto: (3542.1.1 logdisplayers)
  • mto: This revision was merged to the branch mainline in revision 3556.
  • Revision ID: guillo.gonzo@gmail.com-20080304170313-d3xelkr1ypebgs8a
 * move the function regisstry into a real Registry instead of a list

Show diffs side-by-side

added added

removed removed

Lines of Context:
194
194
        def trivial_custom_prop_handler(props_dict):
195
195
            return props_dict
196
196
        
197
 
        bzrlib.log.LogFormatter.add_show_properties(trivial_custom_prop_handler)
 
197
        bzrlib.log.custom_properties_handler_registry.register(
 
198
            'trivial_custom_prop_handler', 
 
199
            trivial_custom_prop_handler)
198
200
        log = self.run_bzr("log --limit 1")[0]
199
201
        # check if it's in the output
200
202
        self.assertContainsRe(log, r'first_prop: first_value\n')
201
203
        
202
204
        log = self.run_bzr("log -r1")[0]
 
205
        # should no be any extra properties in the first revision
203
206
        self.assertNotContainsRe(log, r'first_prop: first_value\n')
204
207
 
205
208
class TestLogMerges(ExternalBase):