/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/plugins/upload/__init__.py

  • Committer: Jelmer Vernooij
  • Date: 2019-03-04 00:16:27 UTC
  • mfrom: (7293 work)
  • mto: This revision was merged to the branch mainline in revision 7318.
  • Revision ID: jelmer@jelmer.uk-20190304001627-v6u7o6pf97tukhek
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
    brz upload -r X  sftp://user@host/location/on/webserver
34
34
 
35
 
bzr-upload, just as brz does, will remember the location where you upload the 
 
35
bzr-upload, just as brz does, will remember the location where you upload the
36
36
first time, so you don't need to specify it every time.
37
37
 
38
38
If you need to re-upload the whole working tree for some reason, you can:
107
107
It is possible to upload to a remote location from another remote location by
108
108
specifying it with the --directory option:
109
109
 
110
 
    brz upload sftp://public.example.com --directory sftp://private.example.com 
 
110
    brz upload sftp://public.example.com --directory sftp://private.example.com
111
111
 
112
112
This, together with --auto, can be used to upload when you push to your
113
113
central branch, rather than when you commit to your local branch.
145
145
# remote files...
146
146
 
147
147
 
148
 
import breezy
149
148
from ... import (
150
149
    commands,
151
150
    config,
152
151
    hooks,
153
152
    )
154
153
 
155
 
from ...hooks import install_lazy_named_hook
156
154
 
157
 
from ... import version_info
 
155
from ... import version_info  # noqa: F401
158
156
 
159
157
 
160
158
def register_option(key, member):
224
222
        'tests',
225
223
        ]
226
224
    basic_tests.addTest(loader.loadTestsFromModuleNames(
227
 
            ["%s.%s" % (__name__, tmn) for tmn in testmod_names]))
 
225
        ["%s.%s" % (__name__, tmn) for tmn in testmod_names]))
228
226
    return basic_tests