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

 * Tell the user if the remote location is already up to date
 * Tweak the docstring to reflect a bit better who this is targeted at

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
The only bzr-related info uploaded with the working tree is the corresponding
20
20
revision id. The uploaded working tree is not linked to any other bzr data.
21
21
 
22
 
The intended use is for web developers with no shell access on their web site
23
 
forced to used FTP or SFTP to upload thei site content.
 
22
The intended use is for web developers which keep their web sites versioned
 
23
with bzr, can can use either FTP or SFTP to upload their site.
24
24
 
25
25
Known limitations:
26
26
- Symlinks are ignored,
66
66
        'remember',
67
67
        'verbose',
68
68
        option.Option('full', 'Upload the full working tree.'),
69
 
        option.Option('quiet', 'Do not output what is being done', 
 
69
        option.Option('quiet', 'Do not output what is being done.', 
70
70
                       short_name='q'),
71
71
        option.Option('directory',
72
72
                      help='Branch to upload from, '
249
249
            # We're done
250
250
            return
251
251
 
 
252
        # Check if the revision hasn't already been uploaded
 
253
        if rev_id == self.rev_id:
 
254
            if not self.quiet:
 
255
                self.outf.write('Remote location already up to date\n')
 
256
 
252
257
        # XXX: errors out if rev_id not in branch history (probably someone
253
258
        # uploaded from a different branch).
254
259
        from_tree = self.branch.repository.revision_tree(rev_id)