/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar
0.152.1 by Vincent Ladeuil
Empty shell
1
# Copyright (C) 2007 Canonical Ltd
2
#
3
# This program is free software; you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License as published by
5
# the Free Software Foundation; either version 2 of the License, or
6
# (at your option) any later version.
7
#
8
# This program is distributed in the hope that it will be useful,
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
# GNU General Public License for more details.
12
#
13
# You should have received a copy of the GNU General Public License
14
# along with this program; if not, write to the Free Software
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
17
"""Upload a working treem incrementally"""
18
0.152.3 by v.ladeuil+lp at free
Make the tests fail not error out.
19
from bzrlib import (
20
    commands,
21
    option,
22
    )
0.152.1 by Vincent Ladeuil
Empty shell
23
24
class cmd_upload(commands.Command):
0.152.2 by v.ladeuil+lp at free
Add failing tests for basic usage.
25
    """Upload a working tree, as a whole or incrementally.
26
27
    If no destination is specified use the last one used.
28
    If no revision is specified upload the changes since the last upload.
29
    """
30
    takes_args = ['dest?']
31
    takes_options = [
32
        'revision',
0.152.3 by v.ladeuil+lp at free
Make the tests fail not error out.
33
        option.Option('full', 'Upload the full working tree.'),
0.152.2 by v.ladeuil+lp at free
Add failing tests for basic usage.
34
        ]
0.152.3 by v.ladeuil+lp at free
Make the tests fail not error out.
35
    def run(self, dest, full=False, revision=None):
0.152.1 by Vincent Ladeuil
Empty shell
36
        pass
37
38
commands.register_command(cmd_upload)
39
40
def test_suite():
41
    from bzrlib.tests import TestUtil
42
43
    suite = TestUtil.TestSuite()
44
    loader = TestUtil.TestLoader()
45
    testmod_names = [
46
        'test_upload',
47
        ]
48
49
    suite.addTest(loader.loadTestsFromModuleNames(
50
            ["%s.%s" % (__name__, tmn) for tmn in testmod_names]))
51
    return suite