~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Vincent Ladeuil
  • Date: 2011-11-14 16:36:31 UTC
  • mto: This revision was merged to the branch mainline in revision 6278.
  • Revision ID: v.ladeuil+lp@free.fr-20111114163631-wj99n1ha7bxmbqno
Add ``basename`` as a section local option

Show diffs side-by-side

added added

removed removed

Lines of Context:
318
318
   $ bzr config mypush
319
319
   lp:~vila/bzr/832013-expand-in-stack
320
320
 
 
321
Another such option is ``basename`` which can be used like this::
 
322
 
 
323
  [/home/vila/src/bzr]
 
324
  mypush = lp:~vila/bzr/{basename}
 
325
 
 
326
When used in a directory like
 
327
``/home/vila/src/bzr/bugs/832013-expand-in-stack`` we'll get::
 
328
 
 
329
   $ bzr config mypush
 
330
   lp:~vila/bzr/832013-expand-in-stack
 
331
 
 
332
Note that ``basename`` here refers to the base name of ``relpath`` which
 
333
itself is defined as the relative path between the section name and the
 
334
location it matches.
 
335
 
321
336
When an option is local to a Section, it cannot be referred to from option
322
337
values in any other section from the same ``Store`` nor from any other
323
338
``Store``.