/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/cmds.py

  • Committer: Jelmer Vernooij
  • Date: 2017-08-26 15:41:03 UTC
  • mfrom: (6754.5.1 other-check)
  • Revision ID: jelmer@jelmer.uk-20170826154103-wqan1wlizjy0725w
Merge lp:~jelmer/brz/other-check.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    )
41
41
""")
42
42
 
 
43
from ...sixish import (
 
44
    text_type,
 
45
    )
 
46
 
43
47
auto_option = config.Option(
44
48
    'upload_auto', default=False, from_unicode=config.bool_from_store,
45
49
    help="""\
174
178
    def upload_file(self, relpath, id, mode=None):
175
179
        if mode is None:
176
180
            if self.tree.is_executable(id):
177
 
                mode = 0775
 
181
                mode = 0o775
178
182
            else:
179
 
                mode = 0664
 
183
                mode = 0o664
180
184
        if not self.quiet:
181
185
            self.outf.write('Uploading %s\n' % relpath)
182
186
        self._up_put_bytes(relpath, self.tree.get_file_text(id), mode)
201
205
 
202
206
    def make_remote_dir(self, relpath, mode=None):
203
207
        if mode is None:
204
 
            mode = 0775
 
208
            mode = 0o775
205
209
        self._up_mkdir(relpath, mode)
206
210
 
207
211
    def make_remote_dir_robustly(self, relpath, mode=None):
460
464
                      help='Branch to upload from, '
461
465
                      'rather than the one containing the working directory.',
462
466
                      short_name='d',
463
 
                      type=unicode,
 
467
                      type=text_type,
464
468
                      ),
465
469
        option.Option('auto',
466
470
                      'Trigger an upload from this branch whenever the tip '