/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 doc/en/admin-guide/code-browsing.txt

  • Committer: Vincent Ladeuil
  • Date: 2012-01-05 14:26:58 UTC
  • mto: This revision was merged to the branch mainline in revision 6468.
  • Revision ID: v.ladeuil+lp@free.fr-20120105142658-vek3v6pzlxb751s2
Tests passing for a first rough version of a cached branch config store. The changes here are too invasive and several parallel proposals have been made. 

@only_raises is evil and gave a hard time since any exception during
save_changes() was swallowed.

Possible improvements: 

- add some needs_write_lock decorators to crucial
  methods (_set_config_location ?) but keep locking the branch at higher levels

- decorate branch.unlock to call stack.save if last_lock() it True
  outside of @only_raises scope (evil decorator)

- add @needs_write_lock to stack.set and stack.remove (will probably get
  rid of most testing issues) we probably need a specialized decorator
  that can relay to the store and from there to the branch or whatever is
  needed. This will also helps bzr config to get it right. The
  get_mutable_section trick should not be needed anymore either.

- decorate branch.unlock to call stack.save if last_lock() it True outside
  of @only_raises scope (evil decorator)

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
   On Ubuntu, `sudo apt-get install python-flup`
48
48
   or use `easy_install flup`
49
49
 
50
 
Although directions for installing these on Ubuntu Linux are given, most other
51
 
Linux distributions should package these dependencies, making installation
 
50
Although directions for installing these on Ubuntu are given, most other
 
51
GNU/Linux distributions should package these dependencies, making installation
52
52
easy.  For Windows and Mac OS X, they should all be ``easy_install``-able or at
53
53
worst installable from the Python sources.
54
54
 
101
101
This would allow the trunk branch of ProjectX to be browsed at
102
102
``http://www.example.com/loggerhead/projectx/trunk``.
103
103
 
104
 
Loggerhead comes with a script allowing it to run as a service on init.d based
105
 
Linux systems.  Contributions to do a similar thing on Windows servers would
106
 
be welcomed at http://launchpad.net/loggerhead.
 
104
Loggerhead comes with a script allowing it to run as a service on
 
105
``init.d`` based Unix systems.  Contributions to do a similar thing on
 
106
Windows servers would be welcomed at http://launchpad.net/loggerhead.
107
107
  
108
108
 
109
109
Other web interfaces
110
110
--------------------
111
111
 
112
112
There are a number of other web interfaces available for Bazaar branches (see
113
 
the list at http://bazaar-vcs.org/WebInterfaces) and we will just mention a
114
 
couple of them here for their advantages in particular situations.
 
113
the list at http://wiki.bazaar.canonical.com/WebInterfaces) and we will just
 
114
mention a couple of them here for their advantages in particular situations.
115
115
 
116
116
trac+bzr (http://launchpad.net/trac-bzr)
117
117
  Trac is a popular web app that integrates a browser for branches, an issue