/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/mini-tutorial/index.txt

Add bzrlib.pyutils, which has get_named_object, a wrapper around __import__.

This is used to replace various ad hoc implementations of the same logic,
notably the version used in registry's _LazyObjectGetter which had a bug when
getting a module without also getting a member.  And of course, this new
function has unit tests, unlike the replaced code.

This also adds a KnownHooksRegistry subclass to provide a more natural home for
some other logic.

I'm not thrilled about the name of the new module or the new functions, but it's
hard to think of good names for such generic functionality.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
For other platforms and to install from source code, see the Download_
30
30
and Installation_ pages.
31
31
 
32
 
.. _installation instructions for Windows: http://bazaar-vcs.org/WindowsDownloads
33
 
.. _installation instructions for Mac OS X: http://bazaar-vcs.org/MacOSXBundle
34
 
.. _Download: http://bazaar-vcs.org/Download
35
 
.. _Installation: http://bazaar-vcs.org/InstallationFaq
 
32
.. _installation instructions for Windows: http://wiki.bazaar.canonical.com/WindowsDownloads
 
33
.. _installation instructions for Mac OS X: http://wiki.bazaar.canonical.com/MacOSXBundle
 
34
.. _Download: http://wiki.bazaar.canonical.com/Download
 
35
.. _Installation: http://wiki.bazaar.canonical.com/InstallationFaq
36
36
 
37
37
 
38
38
Introducing yourself
64
64
 $ mkdir subdirectory
65
65
 $ touch test1.txt test2.txt test3.txt subdirectory/test4.txt
66
66
 
67
 
**Note for Windows users:** use Windows Explorer to create your
 
67
**Note for Windows users**: use Windows Explorer to create your
68
68
directories, then right-click in those directories and select
69
69
``New file`` to create your files.
70
70
 
75
75
If it looks like nothing happened, don't worry. Bazaar has created a
76
76
branch_ where it will store your files and their revision histories.
77
77
 
78
 
.. _branch: http://bazaar-vcs.org/Branch
 
78
.. _branch: http://wiki.bazaar.canonical.com/Branch
79
79
 
80
80
The next step is to tell Bazaar which files you want to track. Running
81
81
``bzr add`` will recursively add everything in the project::
164
164
 
165
165
 $ bzr branch http://www.example.com/myproject
166
166
 
167
 
**Note:** to use sftp, you may need to install ``paramiko`` and
168
 
``pyCrypto``. See http://bazaar-vcs.org/InstallationFaq for details.
 
167
**Note**: to use sftp, you may need to install ``paramiko`` and
 
168
``pyCrypto``. See http://wiki.bazaar.canonical.com/InstallationFaq for details.
169
169
 
170
170
 
171
171
Publishing your branch with Launchpad
186
186
 
187
187
.. [#] Use of the ``lp:`` URL scheme requires bzr 0.92 or later.
188
188
 
189
 
**Note:** ``+junk`` means that this branch isn't associated with any particular
 
189
**Note**: ``+junk`` means that this branch isn't associated with any particular
190
190
project in Launchpad.
191
191
 
192
192
Now, anyone can create their own copy of your branch by typing::