/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 breezy/git/tests/test_repository.py

Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
250
250
            revprops={'authors': 'Joe Example <joe@example.com>\n'
251
251
                                 'Jane Doe <jane@example.com\n>'})
252
252
 
 
253
    def test_bugs(self):
 
254
        wt = self.make_branch_and_tree('.', format='git')
 
255
        revid = wt.commit(
 
256
            "base", allow_pointless=True,
 
257
            revprops={
 
258
                'bugs': 'https://github.com/jelmer/dulwich/issues/123 fixed\n'
 
259
                })
 
260
        rev = wt.branch.repository.get_revision(revid)
 
261
        r = dulwich.repo.Repo('.')
 
262
        self.assertEqual(
 
263
            b'base\n'
 
264
            b'Fixes: https://github.com/jelmer/dulwich/issues/123\n',
 
265
            r[r.head()].message)
 
266
 
253
267
 
254
268
class GitRepositoryFormat(tests.TestCase):
255
269