~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_push.py

(vila) Allows ``log_format`` to be used with ``-O``. (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    blackbox,
36
36
    http_server,
37
37
    scenarios,
 
38
    script,
38
39
    test_foreign,
39
40
    test_server,
40
41
    )
842
843
        self.assertEquals("", output)
843
844
        self.assertEquals(error, "bzr: ERROR: It is not possible to losslessly"
844
845
            " push to dummy. You may want to use dpush instead.\n")
 
846
 
 
847
 
 
848
class TestPushOutput(script.TestCaseWithTransportAndScript):
 
849
 
 
850
    def test_push_log_format(self):
 
851
        self.run_script("""
 
852
            $ bzr init trunk
 
853
            Created a standalone tree (format: 2a)
 
854
            $ cd trunk
 
855
            $ echo foo > file
 
856
            $ bzr add
 
857
            adding file
 
858
            $ bzr commit -m 'we need some foo'
 
859
            2>Committing to:...trunk/
 
860
            2>added file
 
861
            2>Committed revision 1.
 
862
            $ bzr init ../feature
 
863
            Created a standalone tree (format: 2a)
 
864
            $ bzr push -v ../feature -Olog_format=line
 
865
            Added Revisions:
 
866
            1: jrandom@example.com ...we need some foo
 
867
            2>All changes applied successfully.
 
868
            2>Pushed up to revision 1.
 
869
            """)