~abentley/bzr/appenddir

« back to all changes in this revision

Viewing changes to bzrlib/help_topics/en/configuration.txt

  • Committer: Aaron Bentley
  • Date: 2011-02-16 22:02:38 UTC
  • Revision ID: aaron@aaronbentley.com-20110216220238-ptrm40clbin86v0c
Support appenddir configuration policy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
276
276
 appendpath:
277
277
   for contained locations, any additional path components are
278
278
   appended to the value.
 
279
 appenddir:
 
280
   for contained locations, the last path component is appended to the value.
279
281
 
280
282
Policies are specified by keys with names of the form "$var:policy".
281
283
For example, to define the push location for a tree of branches, the
286
288
  push_location:policy = appendpath
287
289
 
288
290
With this configuration, the push location for ``/top/location/branch1``
289
 
would be ``sftp://example.com/location/branch1``.
 
291
would be ``sftp://example.com/location/branch1``, and the push location for
 
292
``top/location/subdir/branch2`` would be
 
293
``sftp://example.com/location/subdir/branch2``.
 
294
 
 
295
If we want to avoid including subdirectories, we can use the appenddir policy
 
296
instead::
 
297
 
 
298
  [/top/location]
 
299
  push_location = sftp://example.com/location
 
300
  push_location:policy = appenddir
 
301
 
 
302
With this configuration, the push location for ``/top/location/branch1``
 
303
would be ``sftp://example.com/location/branch1``, and the push location for
 
304
``top/location/subdir/branch2`` would be
 
305
``sftp://example.com/location/branch2``.
290
306
 
291
307
 
292
308
The main configuration file, bazaar.conf