1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
Bazaar Upload
=============
Overview
--------
bzr-upload is a plugin for Bazaar which lets you upload your working tree to
a remote location using ftp/sftp.
The main target audience is web developers who keep their web pages version
controlled with bzr.
Please report any bugs to: http://bugs.launchpad.net/bzr-upload/
Our home page is located at: https://launchpad.net/bzr-upload/
The original authors are:
Vincent Ladeuil <v.ladeuil+lp@free.fr>
Martin Albisetti <argentina@gmail.com>
Quickstart
----------
To get started, it's as simple as running::
bzr upload sftp://user@host/location/on/webserver
This will initially upload the whole working tree, and leave a file on the
remote location indicating the last revision that was uploaded, in order to
avoid uploading unnecessary information the next time.
If you would like to upload a specific revision, you just do:
bzr upload -r X sftp://user@host/location/on/webserver
bzr-upload, just as bzr does, will remember the location where you upload the
first time, so you don't need to specify it every time.
If you need to re-upload the whole working tree for some reason, you can:
bzr upload --full sftp://user@host/location/on/webserver
Automatically Uploading
-----------------------
bzr-upload comes with a hook that can be used to trigger an upload whenever
the tip of the branch changes, including on commit, push, uncommit etc. This
would allow you to keep the code on the target up to date automatically.
The easiest way to enable this is to run upload with the --auto option.
bzr upload --auto
will enable the hook for this branch. If you were to do a commit in this branch
now you would see it trigger the upload automatically.
If you keep push branch to the remote location that you upload to, and you only
want to upload when the tip of the remote branch changes, you can set the hook
on the remote branch.
bzr upload ftp://host/ --directory=ftp://host/ --auto
If you wish to disable this for a branch again then you can use the --no-auto
option.
bzr upload --no-auto
will disable the feature for that branch.
Collaborating
-------------
While we don't have any platform setup, you can branch from trunk:
bzr branch lp:bzr-upload
And change anything you'd like, and get in touch with any of the authors to
review and add the changes.
Known Issues
------------
* Symlinks are not supported
* Execution bits aren't currently handled
|