Rev 5576: Fix the doctest to avoid errors.NoWhoami. in file:///home/vila/src/bzr/bugs/321320-isolate-doc-tests/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Fri Dec 17 13:32:34 GMT 2010
At file:///home/vila/src/bzr/bugs/321320-isolate-doc-tests/
------------------------------------------------------------
revno: 5576
revision-id: v.ladeuil+lp at free.fr-20101217133233-46ke4psbuak4vkcj
parent: v.ladeuil+lp at free.fr-20101217133027-5q9q5tsbl4enak35
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: 321320-isolate-doc-tests
timestamp: Fri 2010-12-17 14:32:33 +0100
message:
Fix the doctest to avoid errors.NoWhoami.
-------------- next part --------------
=== modified file 'bzrlib/branchbuilder.py'
--- a/bzrlib/branchbuilder.py 2010-11-18 08:13:01 +0000
+++ b/bzrlib/branchbuilder.py 2010-12-17 13:32:33 +0000
@@ -42,10 +42,12 @@
>>> builder.start_series()
>>> builder.build_snapshot('rev-id', None, [
... ('add', ('', 'root-id', 'directory', '')),
- ... ('add', ('filename', 'f-id', 'file', 'content\n'))])
+ ... ('add', ('filename', 'f-id', 'file', 'content\n'))],
+ ... committer='Joe <Joe at example.com>')
'rev-id'
>>> builder.build_snapshot('rev2-id', ['rev-id'],
- ... [('modify', ('f-id', 'new-content\n'))])
+ ... [('modify', ('f-id', 'new-content\n'))],
+ ... committer='Joe <joe at example.com>')
'rev2-id'
>>> builder.finish_series()
>>> branch = builder.get_branch()
More information about the bazaar-commits
mailing list