/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 contrib/upload-bzr.dev

  • Committer: Vincent Ladeuil
  • Date: 2007-09-10 12:12:47 UTC
  • mto: (2810.2.1 integration)
  • mto: This revision was merged to the branch mainline in revision 2813.
  • Revision ID: v.ladeuil+lp@free.fr-20070910121247-sxf4l4pq1e27380p
Fix #128076 and #131396 by reusing bound branch transport.

* bzrlib/bzrdir.py:
(BzrDir.open): Add possible_transports as the last parameter.

* bzrlib/builtins.py:
(cmd_update.run): Use possible_transports parameter to obtain the
master branch transport and reuse it.

* bzrlib/branch.py:
(Branch.open, Branch.get_master_branch,
BzrBranch5.get_master_branch, BzrBranch5.update): Add
possible_transports as the last parameter.

* bzrlib/workingtree.py:
(WorkingTree.update): Add possible_transports as the last parameter.

* bzrlib/tests/commands/test_update.py:
(TestUpdate.test_update): Ignore connections from bind.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh -ex
 
2
 
 
3
# example of how to upload a bzr tree using rsync
 
4
 
 
5
# --include-from is used to make sure that only versioned files and
 
6
# control files are copied.  We use includes/excludes rather than
 
7
# --files-from so that we can delete any files from the destination
 
8
# that are no longer present on the source.
 
9
 
 
10
cd ~/work/bzr 
 
11
 
 
12
# note: don't use -a because that can mess up the permissions
 
13
 
 
14
chmod a+rX `bzr inventory`
 
15
 
 
16
bzr inventory | 
 
17
rsync -rltv                                                         \
 
18
    .                                                               \
 
19
    escudero.ubuntu.com:/srv/www.bazaar-ng.org/rsync/bzr/bzr.dev/   \
 
20
    --include .bzr                                                  \
 
21
    --include '.bzr/**'                                             \
 
22
    --exclude-from .rsyncexclude                                    \
 
23
    --exclude-from .bzrignore                                       \
 
24
    --include-from -                                                \
 
25
    --exclude \*                                                    \
 
26
    --exclude '.*'                                                  \
 
27
    --delete-excluded --delete                                      \