<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Bazaar Release Notes — Bazaar 2.6.0 documentation</title> <link rel="stylesheet" href="../_static/default.css" type="text/css" /> <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: '../', VERSION: '2.6.0', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="../_static/jquery.js"></script> <script type="text/javascript" src="../_static/underscore.js"></script> <script type="text/javascript" src="../_static/doctools.js"></script> <link rel="shortcut icon" href="../_static/bzr.ico"/> <link rel="top" title="Bazaar 2.6.0 documentation" href="../index.html" /> <link rel="up" title="Bazaar Release Notes" href="index.html" /> <link rel="next" title="Bazaar Release Notes" href="bzr-2.0.html" /> <link rel="prev" title="Bazaar Release Notes" href="bzr-2.2.html" /> </head> <body> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="bzr-2.0.html" title="Bazaar Release Notes" accesskey="N">next</a></li> <li class="right" > <a href="bzr-2.2.html" title="Bazaar Release Notes" accesskey="P">previous</a> |</li> <li><a href="http://bazaar.canonical.com/"> <img src="../_static/bzr icon 16.png" /> Home</a> | </li> <a href="http://doc.bazaar.canonical.com/en/">Documentation</a> | </li> <li><a href="../index.html">Table of Contents (2.6.0)</a> »</li> <li><a href="index.html" accesskey="U">Bazaar Release Notes</a> »</li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <div class="section" id="bazaar-release-notes"> <h1>Bazaar Release Notes<a class="headerlink" href="#bazaar-release-notes" title="Permalink to this headline">¶</a></h1> <div class="toctree-wrapper compound"> <ul class="simple"> </ul> </div> <div class="section" id="bzr-2-1-5"> <h2>bzr 2.1.5<a class="headerlink" href="#bzr-2-1-5" title="Permalink to this headline">¶</a></h2> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">2.1.5:</th><td class="field-body">NOT RELEASED YET</td> </tr> </tbody> </table> <div class="section" id="compatibility-breaks"> <h3>Compatibility Breaks<a class="headerlink" href="#compatibility-breaks" title="Permalink to this headline">¶</a></h3> </div> <div class="section" id="new-features"> <h3>New Features<a class="headerlink" href="#new-features" title="Permalink to this headline">¶</a></h3> </div> <div class="section" id="bug-fixes"> <h3>Bug Fixes<a class="headerlink" href="#bug-fixes" title="Permalink to this headline">¶</a></h3> <ul> <li><p class="first">Accessing a packaging branch on Launchpad (eg, <tt class="docutils literal"><span class="pre">lp:ubuntu/bzr</span></tt>) now checks to see if the most recent published source package version for that project is present in the branch tags. This should help developers trust whether the packaging branch is up-to-date and can be used for new changes. The level of verbosity is controlled by the config item <tt class="docutils literal"><span class="pre">launchpad.packaging_verbosity</span></tt>. It can be set to one of</p> <dl class="docutils"> <dt>off</dt> <dd><p class="first last">disable all checks</p> </dd> <dt>minimal</dt> <dd><p class="first last">only display if the branch is out-of-date</p> </dd> <dt>short</dt> <dd><p class="first last">also display single-line up-to-date and missing,</p> </dd> <dt>all</dt> <dd><p class="first last">(default) display multi-line content for all states</p> </dd> </dl> <p>(John Arbash Meinel, #609187, #812928)</p> </li> </ul> </div> <div class="section" id="improvements"> <h3>Improvements<a class="headerlink" href="#improvements" title="Permalink to this headline">¶</a></h3> </div> <div class="section" id="documentation"> <h3>Documentation<a class="headerlink" href="#documentation" title="Permalink to this headline">¶</a></h3> </div> <div class="section" id="api-changes"> <h3>API Changes<a class="headerlink" href="#api-changes" title="Permalink to this headline">¶</a></h3> </div> <div class="section" id="internals"> <h3>Internals<a class="headerlink" href="#internals" title="Permalink to this headline">¶</a></h3> </div> <div class="section" id="testing"> <h3>Testing<a class="headerlink" href="#testing" title="Permalink to this headline">¶</a></h3> </div> </div> <div class="section" id="bzr-2-1-4"> <h2>bzr 2.1.4<a class="headerlink" href="#bzr-2-1-4" title="Permalink to this headline">¶</a></h2> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">2.1.4:</th><td class="field-body">2011-05-16</td> </tr> </tbody> </table> <p>The fourth release in our 2.1 series addresses some user-inconvenience bugs. None are critical, but upgrading is recommended for all users on earlier 2.1 releases.</p> <div class="section" id="id1"> <h3>Compatibility Breaks<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>Launchpad has announced that the <tt class="docutils literal"><span class="pre">edge.launchpad.net</span></tt> instance is deprecated and may be shut down in the future <<a class="reference external" href="http://blog.launchpad.net/general/edge-is-deprecated">http://blog.launchpad.net/general/edge-is-deprecated</a>>. Bazaar has therefore been updated in this release to talk to the main (<tt class="docutils literal"><span class="pre">launchpad.net</span></tt>) servers, rather than the <tt class="docutils literal"><span class="pre">edge</span></tt> ones. (Vincent Ladeuil, #583667)</li> </ul> </div> <div class="section" id="id2"> <h3>New Features<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h3> <p>None.</p> </div> <div class="section" id="id3"> <h3>Bug Fixes<a class="headerlink" href="#id3" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>Avoid UnicodeDecodeError in <tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">add</span></tt> with multiple files under a non-ascii path on windows from symlink support addition. (Martin [gz], #686611)</li> <li>Skip tests that needs a bzr source tree when there isn’t one. This is needed to succesfully run the test suite for installed versions. (Vincent Ladeuil, #644855).</li> <li>Skip the tests that requires respecting the chmod bits when running as root. (Vincent Ladeuil, #646133)</li> <li>Using bzr with <cite>lp:</cite> URLs behind an HTTP proxy should work. (Robert Collins, #558343)</li> </ul> </div> <div class="section" id="id4"> <h3>Improvements<a class="headerlink" href="#id4" title="Permalink to this headline">¶</a></h3> </div> <div class="section" id="id5"> <h3>Documentation<a class="headerlink" href="#id5" title="Permalink to this headline">¶</a></h3> </div> <div class="section" id="id6"> <h3>API Changes<a class="headerlink" href="#id6" title="Permalink to this headline">¶</a></h3> </div> <div class="section" id="id7"> <h3>Internals<a class="headerlink" href="#id7" title="Permalink to this headline">¶</a></h3> </div> <div class="section" id="id8"> <h3>Testing<a class="headerlink" href="#id8" title="Permalink to this headline">¶</a></h3> </div> </div> <div class="section" id="bzr-2-1-3"> <h2>bzr 2.1.3<a class="headerlink" href="#bzr-2-1-3" title="Permalink to this headline">¶</a></h2> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Codename:</th><td class="field-body">Do run run</td> </tr> <tr class="field-even field"><th class="field-name">2.1.3:</th><td class="field-body">2010-09-17</td> </tr> </tbody> </table> <p>The third release in our 2.1 series addresses several user-inconvenience bugs (and includes the fixes done in 2.0.6). None are critical, but upgrading is recommended for all users on earlier 2.1 releases.</p> <div class="section" id="id9"> <h3>Bug Fixes<a class="headerlink" href="#id9" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>Additional merges after an unrelated branch has been merged with its history no longer crash when deleted files are involved. (Vincent Ladeuil, John Arbash Meinel, #375898)</li> <li><tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">add</span> <span class="pre">SYMLINK/FILE</span></tt> now works properly when the symlink points to a previously-unversioned directory within the tree: the directory is marked versioned too. (Martin Pool, #192859)</li> <li><tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">commit</span> <span class="pre">SYMLINK</span></tt> now works, rather than trying to commit the target of the symlink. (Martin Pool, John Arbash Meinel, #128562)</li> <li><tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">upgrade</span></tt> now creates the <tt class="docutils literal"><span class="pre">backup.bzr</span></tt> directory with the same permissions as <tt class="docutils literal"><span class="pre">.bzr</span></tt> directory on a POSIX OS. (Parth Malwankar, #262450)</li> <li>Configuration files in <tt class="docutils literal"><span class="pre">${BZR_HOME}</span></tt> are now written in an atomic way which should help avoid problems with concurrent writers. (Vincent Ladeuil, #525571)</li> <li>Don’t traceback trying to unversion children files of an already unversioned directory. (Vincent Ladeuil, #494221)</li> <li>Don’t traceback when a lockdir’s <tt class="docutils literal"><span class="pre">held/info</span></tt> file is corrupt (e.g. contains only NUL bytes). Instead warn the user, and allow <tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">break-lock</span></tt> to remove it. (Andrew Bennetts, #619872)</li> <li>Fix <tt class="docutils literal"><span class="pre">AttributeError</span> <span class="pre">on</span> <span class="pre">parent.children</span></tt> when adding a file under a directory that was a symlink in the previous commit. (Martin Pool, #192859)</li> <li>Prevent <tt class="docutils literal"><span class="pre">CHKMap.apply_delta</span></tt> from generating non-canonical CHK maps, which can result in “missing referenced chk root keys” errors when fetching from repositories with affected revisions. (Andrew Bennetts, #522637)</li> <li>Raise ValueError instead of a string exception. (John Arbash Meinel, #586926)</li> <li>Reduce peak memory by one copy of compressed text. (John Arbash Meinel, #566940)</li> <li>Repositories accessed via a smart server now reject being stacked on a repository in an incompatible format, as is the case when accessing them via other methods. This was causing fetches from those repositories via a smart server (e.g. using <tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">branch</span></tt>) to receive invalid data. (Andrew Bennetts, #562380)</li> <li>Selftest with versions of subunit that support <tt class="docutils literal"><span class="pre">stopTestRun</span></tt> will no longer error. This error was caused by 2.0 not being updated when upstream python merged the end of run patch, which chose <tt class="docutils literal"><span class="pre">stopTestRun</span></tt> rather than <tt class="docutils literal"><span class="pre">done</span></tt>. (Robert Collins, #571437)</li> <li>Stop <tt class="docutils literal"><span class="pre">AttributeError:</span> <span class="pre">'module'</span> <span class="pre">object</span> <span class="pre">has</span> <span class="pre">no</span> <span class="pre">attribute</span> <span class="pre">'ElementTree'</span></tt> being thrown from <tt class="docutils literal"><span class="pre">xml_serializer</span></tt> on certain cElementTree setups. (Martin [gz], #254278)</li> <li>When passing a file to <tt class="docutils literal"><span class="pre">UTF8DirReader</span></tt> make sure to close the current directory file handle after the chdir fails. Otherwise when passing many filenames into a command line <tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">status</span></tt> we would leak descriptors. (John Arbash Meinel, #583486)</li> </ul> </div> <div class="section" id="id10"> <h3>Testing<a class="headerlink" href="#id10" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><tt class="docutils literal"><span class="pre">build_tree_contents</span></tt> can create symlinks. (Martin Pool, John Arbash Meinel)</li> </ul> </div> </div> <div class="section" id="bzr-2-1-2"> <h2>bzr 2.1.2<a class="headerlink" href="#bzr-2-1-2" title="Permalink to this headline">¶</a></h2> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">2.1.2:</th><td class="field-body">2010-05-28</td> </tr> </tbody> </table> <p>This release fixes two critical networking issues with older servers and with interrupted system call errors when pushing or pulling. We recommend upgrading to anyone running a 2.1.x version of bzr.</p> <div class="section" id="id11"> <h3>Bug Fixes<a class="headerlink" href="#id11" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">clean-tree</span></tt> should not delete nested bzrdirs. Required for proper support of bzr-externals and scmproj plugins. (Alexander Belchenko, bug #572098)</li> <li><tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">switch</span></tt> does not die if a ConfigurableFileMerger is used. (Aaron Bentley, #559436)</li> <li>Do not register a SIGWINCH signal handler, instead just poll for the terminal width as needed. This avoids the “Interrupted System Call” problems that occur on POSIX with all currently released versions of Python. (Andrew Bennetts, #583941)</li> <li>Fixed <tt class="docutils literal"><span class="pre">AssertionError</span></tt> when accessing smart servers running Bazaar versions before 1.6. (Andrew Bennetts, #528041)</li> <li>Reset <tt class="docutils literal"><span class="pre">siginterrupt</span></tt> flag to False every time we handle a signal installed with <tt class="docutils literal"><span class="pre">set_signal_handler(...,</span> <span class="pre">restart_syscall=True)</span></tt> (from <tt class="docutils literal"><span class="pre">bzrlib.osutils</span></tt>. Reduces the likelihood of “Interrupted System Call” errors compared to registering <tt class="docutils literal"><span class="pre">signal.signal</span></tt> directly. (Andrew Bennetts)</li> <li>Reduce peak memory by one copy of compressed text. (John Arbash Meinel, #566940)</li> <li>Support Pyrex 0.9.9, required changing how we handle exceptions in Pyrex. (John Arbash Meinel, #582656)</li> <li>When passing a file to <tt class="docutils literal"><span class="pre">UTF8DirReader</span></tt> make sure to close the current directory file handle after the chdir fails. Otherwise when passing many filenames into a command line <tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">status</span></tt> we would leak descriptors. (John Arbash Meinel, #583486)</li> </ul> </div> <div class="section" id="id12"> <h3>Internals<a class="headerlink" href="#id12" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><tt class="docutils literal"><span class="pre">_remember_remote_is_before</span></tt> no longer raises AssertionError when suboptimal network behaviour is noticed; instead it just mutters to the log file (and warns the user if they have set the <tt class="docutils literal"><span class="pre">hpss</span></tt> debug flag). This was causing unnecessary aborts for performance bugs that are minor at worst. (Andrew Bennetts, #528041)</li> </ul> </div> </div> <div class="section" id="bzr-2-1-1"> <h2>bzr 2.1.1<a class="headerlink" href="#bzr-2-1-1" title="Permalink to this headline">¶</a></h2> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">2.1.1:</th><td class="field-body">2010-03-24</td> </tr> </tbody> </table> <p>This is a small bugfix release. Upgrading is recommended for anyone running 2.1.0 or earlier.</p> <div class="section" id="id13"> <h3>Bug Fixes<a class="headerlink" href="#id13" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>Allow syscalls to automatically restart when <tt class="docutils literal"><span class="pre">TextUIFactory</span></tt>‘s SIGWINCH handler is invoked, avoiding <tt class="docutils literal"><span class="pre">EINTR</span></tt> errors during blocking IO, which are often poorly handled by Python’s libraries and parts of bzrlib. (Andrew Bennetts, #496813)</li> <li>Avoid <tt class="docutils literal"><span class="pre">malloc(0)</span></tt> in <tt class="docutils literal"><span class="pre">patiencediff</span></tt>, which is non-portable. (Martin Pool, #331095)</li> <li>Fix plugin packaging on Windows. (Ian Clatworthy, #524162)</li> <li>Fix stub SFTP test server to call os.getcwdu(). (Vincent Ladeuil, #526221, #526353)</li> <li>Fixed CHM generation by moving the NEWS section template into a separate file. (Ian Clatworthy, #524184)</li> <li>Merge correctly when this_tree is not a WorkingTree. (Aaron Bentley)</li> <li>Register SIGWINCH handler only when creating a <tt class="docutils literal"><span class="pre">TextUIFactory</span></tt>; avoids problems importing bzrlib from a non-main thread. (Elliot Murphy, #521989)</li> <li>Repositories accessed via a smart server now reject being stacked on a repository in an incompatible format, as is the case when accessing them via other methods. This was causing fetches from those repositories via a smart server (e.g. using <tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">branch</span></tt>) to receive invalid data. (Andrew Bennetts, #562380)</li> <li>Standardize the error handling when creating a new <tt class="docutils literal"><span class="pre">StaticTuple</span></tt> (problems will raise TypeError). (Matt Nordhoff, #457979)</li> <li>Warn if pyrex is too old to compile the new <tt class="docutils literal"><span class="pre">SimpleSet</span></tt> and <tt class="docutils literal"><span class="pre">StaticTuple</span></tt> extensions, rather than having the build fail randomly. (John Arbash Meinel, #449776)</li> </ul> </div> <div class="section" id="id14"> <h3>Documentation<a class="headerlink" href="#id14" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>Added a link to the Desktop Guide. (Ian Clatworthy)</li> <li>Added What’s New in Bazaar 2.1 document. (Ian Clatworthy)</li> <li>Drop Google Analytics from the core docs as they caused problems in the CHM files. (Ian Clatworthy, #502010)</li> </ul> </div> <div class="section" id="id15"> <h3>API Changes<a class="headerlink" href="#id15" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>Added <tt class="docutils literal"><span class="pre">bzrlib.osutils.set_signal_handler</span></tt>, a convenience function that can set a signal handler and call <tt class="docutils literal"><span class="pre">signal.siginterrupt(signum,</span> <span class="pre">False)</span></tt> for it, if the platform and Python version supports it. (Andrew Bennetts, #496813)</li> </ul> </div> </div> <div class="section" id="bzr-2-1-0"> <h2>bzr 2.1.0<a class="headerlink" href="#bzr-2-1-0" title="Permalink to this headline">¶</a></h2> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Codename:</th><td class="field-body">Strasbourg</td> </tr> <tr class="field-even field"><th class="field-name">2.1.0:</th><td class="field-body">2010-02-11</td> </tr> </tbody> </table> <p>This release marks our second long-term-stable series. The Bazaar team has decided that we will continue to make bugfix-only 2.0.x and 2.1.x releases, along with 2.2 development releases.</p> <p>This is a fairly incremental update, focusing on polish and bugfixing. There are no changes for supported disk formats. Key updates include reduced memory consumption for many operations, a new per-file merge hook, ignore patterns can now include ‘!’ to exclude files, globbing support for all commands on Windows, and support for addressing home directories via <tt class="docutils literal"><span class="pre">bzr+ssh://host/~/</span></tt> syntax.</p> <p>Users are encouraged to upgrade from the 2.0 stable series.</p> <div class="section" id="id16"> <h3>Bug Fixes<a class="headerlink" href="#id16" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>Don’t require testtools to use SFTP. (Vincent Ladeuil, #516183)</li> <li>Fix “AttributeError in Inter1and2Helper” during fetch. (Martin Pool, #513432)</li> <li><tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">update</span></tt> performs the two merges in a more logical order and will stop when it encounters conflicts. (Gerard Krol, #113809)</li> <li>Give a better error message when doing <tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">bind</span></tt> in an already bound branch. (Neil Martinsen-Burrell, #513063)</li> <li>Ignore <tt class="docutils literal"><span class="pre">KeyError</span></tt> from <tt class="docutils literal"><span class="pre">remove_index</span></tt> during <tt class="docutils literal"><span class="pre">_abort_write_group</span></tt> in a pack repository, which can happen harmlessly if the abort occurs during finishing the write group. Also use <tt class="docutils literal"><span class="pre">bzrlib.cleanup</span></tt> so that any other errors that occur while aborting the individual packs won’t be hidden by secondary failures when removing the corresponding indices. (Andrew Bennetts, #423015)</li> <li>Set the mtime of files exported to a directory by <tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">export</span></tt> all to the same value to avoid confusing <tt class="docutils literal"><span class="pre">make</span></tt> and other date-based build systems. (Robert Collins, #515631)</li> </ul> </div> <div class="section" id="id17"> <h3>Improvements<a class="headerlink" href="#id17" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>Fetching into experimental formats will now print a warning. (Jelmer Vernooij)</li> </ul> </div> <div class="section" id="id18"> <h3>API Changes<a class="headerlink" href="#id18" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><tt class="docutils literal"><span class="pre">Repository.deserialise_inventory</span></tt> has been renamed to <tt class="docutils literal"><span class="pre">Repository._deserialise_inventory</span></tt> to indicate it is private. (Jelmer Vernooij)</li> <li><tt class="docutils literal"><span class="pre">Repository.get_inventory_xml</span></tt> has been renamed to <tt class="docutils literal"><span class="pre">Repository._get_inventory_xml</span></tt> to indicate it is private. (Jelmer Vernooij)</li> <li><tt class="docutils literal"><span class="pre">Repository.serialise_inventory</span></tt> has been renamed to <tt class="docutils literal"><span class="pre">Repository._serialise_inventory</span></tt> to indicate it is private.</li> <li>Using the <tt class="docutils literal"><span class="pre">bzrlib.chk_map</span></tt> module from within multiple threads at the same time was broken due to race conditions with a module level page cache. This shows up as a KeyError in the <tt class="docutils literal"><span class="pre">bzrlib.lru_cache</span></tt> code with <tt class="docutils literal"><span class="pre">bzrlib.chk_map</span></tt> in the backtrace, and can be triggered without using the same high level objects such as <tt class="docutils literal"><span class="pre">bzrlib.repository.Repository</span></tt> from different threads. chk_map now uses a thread local cache which may increase memory pressure on processes using threads. (Robert Collins, John Arbash Meinel, #514090)</li> <li>The new <tt class="docutils literal"><span class="pre">merge_file_content</span></tt> should now be ok with tests to avoid regressions. (Vincent Ladeuil, #515597)</li> </ul> </div> <div class="section" id="id19"> <h3>Internals<a class="headerlink" href="#id19" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>Use <tt class="docutils literal"><span class="pre">bzrlib.cleanup</span></tt> rather than less robust <tt class="docutils literal"><span class="pre">try</span></tt>/<tt class="docutils literal"><span class="pre">finally</span></tt> blocks in several places in <tt class="docutils literal"><span class="pre">bzrlib.merge</span></tt>. This avoids masking prior errors when errors like <tt class="docutils literal"><span class="pre">ImmortalPendingDeletion</span></tt> occur during cleanup in <tt class="docutils literal"><span class="pre">do_merge</span></tt>. (Andrew Bennetts, #517275)</li> </ul> </div> <div class="section" id="id20"> <h3>API Changes<a class="headerlink" href="#id20" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>The <tt class="docutils literal"><span class="pre">remove_index</span></tt> method of <tt class="docutils literal"><span class="pre">bzrlib.repofmt.pack_repo.AggregateIndex</span></tt> no longer takes a <tt class="docutils literal"><span class="pre">pack</span></tt> argument. This argument was always ignored. (Andrew Bennetts, #423015)</li> </ul> </div> </div> <div class="section" id="bzr-2-1-0rc2"> <h2>bzr 2.1.0rc2<a class="headerlink" href="#bzr-2-1-0rc2" title="Permalink to this headline">¶</a></h2> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Codename:</th><td class="field-body">after the bubbles</td> </tr> <tr class="field-even field"><th class="field-name">2.1.0rc2:</th><td class="field-body">2010-01-29</td> </tr> </tbody> </table> <p>This is a quick-turn-around to update a small issue with our new per-file merge hook. We expect no major changes from this to the final 2.1.0.</p> <div class="section" id="id21"> <h3>API Changes<a class="headerlink" href="#id21" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>The new <tt class="docutils literal"><span class="pre">merge_file_content</span></tt> hook point has been altered to provide a better API where state for extensions can be stored rather than the too-simple function based approach. This fixes a performance regression where branch configuration would be parsed per-file during merge. As part of this the included news_merger has been refactored into a base helper class <tt class="docutils literal"><span class="pre">bzrlib.merge.ConfigurableFileMerger</span></tt>. (Robert Collins, John Arbash Meinel, #513822)</li> </ul> </div> </div> <div class="section" id="bzr-2-1-0rc1"> <h2>bzr 2.1.0rc1<a class="headerlink" href="#bzr-2-1-0rc1" title="Permalink to this headline">¶</a></h2> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Codename:</th><td class="field-body">the ‘new’ stable</td> </tr> <tr class="field-even field"><th class="field-name">2.1.0rc1:</th><td class="field-body">2009-01-21</td> </tr> </tbody> </table> <p>This is the first stable release candidate for Bazaar’s 2.1 series. From this point onwards, the 2.1 series will be considered stable (as the 2.0 series) and only bugfixes are expected to be incorporated. The dozen or so bugfixes in the 2.0.4 release are also included in this release (along with more than 15 more bugfixes). Some of the interesting features are support for per-file merge hooks, <tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">unshelve</span> <span class="pre">--preview</span></tt>, support for using ! in ignore files to exclude files from being ignored, a small memory leak was squashed, and many <tt class="docutils literal"><span class="pre">ObjectNotLocked</span></tt> errors were fixed. This looks to be a very good start for a new stable series.</p> <div class="section" id="id22"> <h3>New Features<a class="headerlink" href="#id22" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>Add bug information to log output when available. (Neil Martinsen-Burrell, Guillermo Gonzalez, #251729)</li> <li>Added <tt class="docutils literal"><span class="pre">merge_file_content</span></tt> hook point to <tt class="docutils literal"><span class="pre">Merger</span></tt>, allowing plugins to register custom merge logic, e.g. to provide smarter merging for particular files.</li> <li>Bazaar now includes the <tt class="docutils literal"><span class="pre">news_merge</span></tt> plugin. It is disabled by default, to enable it add a <tt class="docutils literal"><span class="pre">news_merge_files</span></tt> option to your configuration. Consult <tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">help</span> <span class="pre">news_merge</span></tt> for more information. (Andrew Bennetts)</li> <li><tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">branch</span></tt> now takes a <tt class="docutils literal"><span class="pre">--bind</span></tt> option. This lets you branch and bind all in one command. (Ian Clatworthy)</li> <li><tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">switch</span></tt> now takes a <tt class="docutils literal"><span class="pre">--revision</span></tt> option, to allow switching to a specific revision of a branch. (Daniel Watkins, #183559)</li> <li><tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">unshelve</span> <span class="pre">--preview</span></tt> can now be used to show how a patch on the shelf would be applied to the working tree. (Guilherme Salgado, #308122)</li> <li><tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">update</span></tt> now takes a <tt class="docutils literal"><span class="pre">--revision</span></tt> argument. This lets you change the revision of the working tree to any revision in the ancestry of the current or master branch. (Matthieu Moy, Mark Hammond, Martin Pool, #45719)</li> <li><tt class="docutils literal"><span class="pre">-Dbytes</span></tt> can now be used to display the total number of bytes transferred for the current command. This information is always logged to <tt class="docutils literal"><span class="pre">.bzr.log</span></tt> for later inspection. (John Arbash Meinel)</li> <li>New ignore patterns. Patterns prefixed with ‘!’ are exceptions to ignore patterns and take precedence over regular ignores. Such exceptions are used to specify files that should be versioned which would otherwise be ignored. Patterns prefixed with ‘!!’ act as regular ignore patterns, but have highest precedence, even over the ‘!’ exception patterns. (John Whitley, #428031)</li> <li>The <tt class="docutils literal"><span class="pre">supress_warnings</span></tt> configuration option has been introduced to disable various warnings (it currently only supports the <tt class="docutils literal"><span class="pre">format_deprecation</span></tt> warning). The new option can be set in any of the following locations: <tt class="docutils literal"><span class="pre">bazaar.conf</span></tt>, <tt class="docutils literal"><span class="pre">locations.conf</span></tt> and/or <tt class="docutils literal"><span class="pre">branch.conf</span></tt>. (Ted Gould, Matthew Fuller, Vincent Ladeuil)</li> </ul> </div> <div class="section" id="id23"> <h3>Bug Fixes<a class="headerlink" href="#id23" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>Always show a message if an OS error occurs while trying to run a user-specified commit message editor. (Martin Pool, #504842)</li> <li><tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">diff</span></tt> will now use the epoch when it is unable to determine the timestamp of a file, if the revision it was introduced in is a ghost. (Jelmer Vernooij, #295611)</li> <li><tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">switch</span> <span class="pre">-b</span></tt> can now create branches that are located using directory services such as <tt class="docutils literal"><span class="pre">lp:</span></tt>, even when the branch name doesn’t contain a ‘/’. (Neil Martinsen-Burrell, #495263)</li> <li><tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">unshelve</span></tt> has improved messages about what it is doing. (Neil Martinsen-Burrell, #496917)</li> <li>Concurrent autopacking is more resilient to already-renamed pack files. If we find that a file we are about to obsolete is already obsoleted, we do not try to rename it, and we leave the file in <tt class="docutils literal"><span class="pre">obsolete_packs</span></tt>. The code is also fault tolerant if a file goes missing, assuming that another process already removed the file. (John Arbash Meinel, Gareth White, #507557)</li> <li>Fix “Too many concurrent requests” in reconcile when network connection fails. (Andrew Bennetts, #503878)</li> <li>Fixed a side effect mutation of <tt class="docutils literal"><span class="pre">RemoteBzrDirFormat._network_name</span></tt> that caused some tests to fail when run in a non-default order. Probably no user impact. (Martin Pool, #504102)</li> <li>Fixed <tt class="docutils literal"><span class="pre">ObjectNotLocked</span></tt> error in <tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">cat</span> <span class="pre">-rbranch:../foo</span> <span class="pre">FILE</span></tt>. (Andrew Bennetts, #506274)</li> <li>FTP transports support Unicode paths by encoding/decoding them as utf8. (Vincent Ladeuil, #472161)</li> <li>Listen to the SIGWINCH signal to update the terminal width. (Vincent Ladeuil, #316357)</li> <li>Progress bars are now hidden when <tt class="docutils literal"><span class="pre">--quiet</span></tt> is given. (Martin Pool, #320035)</li> <li><tt class="docutils literal"><span class="pre">SilentUIFactory</span></tt> now supports <tt class="docutils literal"><span class="pre">make_output_stream</span></tt> and discards whatever is written to it. This un-breaks some plugin tests that depended on this behaviour. (Martin Pool, #499757)</li> <li>When operations update the working tree, all affected files should end up with the same mtime. (eg. when versioning a generated file, if you update the source and the generated file together, the generated file should appear up-to-date.) (John Arbash Meinel, Martin <gzlist>, #488724)</li> </ul> </div> <div class="section" id="id24"> <h3>Improvements<a class="headerlink" href="#id24" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>Added <tt class="docutils literal"><span class="pre">add_cleanup</span></tt> and <tt class="docutils literal"><span class="pre">cleanup_now</span></tt> to <tt class="docutils literal"><span class="pre">bzrlib.command.Command</span></tt>. All the builtin commands now use <tt class="docutils literal"><span class="pre">add_cleanup</span></tt> rather than <tt class="docutils literal"><span class="pre">try</span></tt>/<tt class="docutils literal"><span class="pre">finally</span></tt> blocks where applicable as it is simpler and more robust. (Andrew Bennetts)</li> <li>All except a small number of storage formats are now hidden, making the help for numerous commands far more digestible. (Ian Clatworthy)</li> <li>Attempts to open a shared repository as a branch (e.g. <tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">branch</span> <span class="pre">path/to/repo</span></tt>) will now include “location is a repository” as a hint in the error message. (Brian de Alwis, Andrew Bennetts, #440952)</li> <li>Push will now inform the user when they are trying to push to a foreign VCS for which roundtripping is not supported, and will suggest them to use dpush. (Jelmer Vernooij)</li> <li>The version of bzr being run is now written to the log file. (__monty__, #257170)</li> <li>Transport network activity indicator is shown more of the time when Bazaar is doing network IO. (Martin Pool)</li> </ul> </div> <div class="section" id="id25"> <h3>Documentation<a class="headerlink" href="#id25" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>Add documentation on creating merges with more than one parent. (Neil Martinsen-Burrell, #481526)</li> <li>Better explain the –uncommitted option of merge. (Neil Martinsen-Burrell, #505088)</li> <li>Improve discussion of pending merges in the documentation for <tt class="docutils literal"><span class="pre">revert</span></tt>. (Neil Martinsen-Burrell, #505093)</li> <li>Improved help for <tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">send</span></tt>. (Martin Pool, Bojan Nikolic)</li> <li>There is a System Administrator’s Guide in <tt class="docutils literal"><span class="pre">doc/en/admin-guide</span></tt>, including discussions of installation, relevant plugins, security and backup. (Neil Martinsen-Burrell)</li> <li>The <tt class="docutils literal"><span class="pre">conflicts</span></tt> help topic has been renamed to <tt class="docutils literal"><span class="pre">conflict-types</span></tt>. (Ian Clatworthy)</li> <li>The User Reference is now presented as a series of topics. Many of the included topics have link and format tweaks applied. (Ian Clatworthy)</li> </ul> </div> <div class="section" id="id26"> <h3>API Changes<a class="headerlink" href="#id26" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>Added <tt class="docutils literal"><span class="pre">cachedproperty</span></tt> decorator to <tt class="docutils literal"><span class="pre">bzrlib.decorators</span></tt>. (Andrew Bennetts)</li> <li>Many test features were renamed from <tt class="docutils literal"><span class="pre">FooFeature</span></tt> to <tt class="docutils literal"><span class="pre">foo_feature</span></tt> to be consistent with instances being lower case and classes being CamelCase. For the features that were more likely to be used, we added a deprecation thunk, but not all. (John Arbash Meinel)</li> <li>Merger classes (such as <tt class="docutils literal"><span class="pre">Merge3Merger</span></tt>) now expect a <tt class="docutils literal"><span class="pre">this_branch</span></tt> parameter in their constructors, and provide <tt class="docutils literal"><span class="pre">this_branch</span></tt> as an attribute. (Andrew Bennetts)</li> <li>The Branch hooks pre_change_branch_tip no longer masks exceptions raised by plugins - the original exceptions are now preserved. (Robert Collins)</li> <li>The Transport <tt class="docutils literal"><span class="pre">Server.tearDown</span></tt> method is now renamed to <tt class="docutils literal"><span class="pre">stop_server</span></tt> and <tt class="docutils literal"><span class="pre">setUp</span></tt> to <tt class="docutils literal"><span class="pre">start_server</span></tt> for consistency with our normal naming pattern, and to avoid confusion with Python’s <tt class="docutils literal"><span class="pre">TestCase.tearDown</span></tt>. (Martin Pool)</li> <li><tt class="docutils literal"><span class="pre">WorkingTree.update</span></tt> implementations must now accept a <tt class="docutils literal"><span class="pre">revision</span></tt> parameter.</li> </ul> </div> <div class="section" id="id27"> <h3>Internals<a class="headerlink" href="#id27" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>Added <tt class="docutils literal"><span class="pre">BzrDir.open_branchV3</span></tt> smart server request, which can receive a string of details (such as “location is a repository”) as part of a <tt class="docutils literal"><span class="pre">nobranch</span></tt> response. (Andrew Bennetts, #440952)</li> <li>New helper osutils.UnicodeOrBytesToBytesWriter which encodes unicode objects but passes str objects straight through. This is used for selftest but may be useful for diff and other operations that generate mixed output. (Robert Collins)</li> <li>New exception <tt class="docutils literal"><span class="pre">NoRoundtrippingSupport</span></tt>, for use by foreign branch plugins. (Jelmer Vernooij)</li> </ul> </div> <div class="section" id="id28"> <h3>Testing<a class="headerlink" href="#id28" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><tt class="docutils literal"><span class="pre">bzrlib.tests.permute_for_extension</span></tt> is a helper that simplifies running all tests in the current module, once against a pure python implementation, and once against an extension (pyrex/C) implementation. It can be used to dramatically simplify the implementation of <tt class="docutils literal"><span class="pre">load_tests</span></tt>. (John Arbash Meinel)</li> <li><tt class="docutils literal"><span class="pre">bzrlib.tests.TestCase</span></tt> now subclasses <tt class="docutils literal"><span class="pre">testtools.testcase.TestCase</span></tt>. This permits features in testtools such as getUniqueInteger and getUniqueString to be used. Because of this, testtools version 0.9.2 or newer is now a dependency to run bzr selftest. Running with versions of testtools less than 0.9.2 will cause bzr to error while loading the test suite. (Robert Collins)</li> <li>Shell-like tests now support the command “mv” for moving files. The syntax for <tt class="docutils literal"><span class="pre">mv</span> <span class="pre">file1</span> <span class="pre">file2</span></tt>, <tt class="docutils literal"><span class="pre">mv</span> <span class="pre">dir1</span> <span class="pre">dir2</span></tt> and <tt class="docutils literal"><span class="pre">mv</span> <span class="pre">file</span> <span class="pre">dir</span></tt> is supported. (Neil Martinsen-Burrell)</li> <li>The test progress bar no longer distinguishes tests that ‘errored’ from tests that ‘failed’ - they’re all just failures. (Martin Pool)</li> </ul> </div> </div> <div class="section" id="bzr-2-1-0b4"> <h2>bzr 2.1.0b4<a class="headerlink" href="#bzr-2-1-0b4" title="Permalink to this headline">¶</a></h2> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Codename:</th><td class="field-body">san francisco airport</td> </tr> <tr class="field-even field"><th class="field-name">2.1.0b4:</th><td class="field-body">2009-12-14</td> </tr> </tbody> </table> <p>The fourth beta release in the 2.1 series brings with it a significant number of bugfixes (~20). The test suite is once again (finally) “green” on Windows, and should remain that way for future releases. There are a few performance related updates (faster upgrade and log), and several UI tweaks. There has also been a significant number of tweaks to the runtime documentation. 2.1.0b4 include everything from the 2.0.3 release.</p> <div class="section" id="id29"> <h3>Compatibility Breaks<a class="headerlink" href="#id29" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>The BZR_SSH environmental variable may now be set to the path of a secure shell client. If currently set to the value <tt class="docutils literal"><span class="pre">ssh</span></tt> it will now guess the vendor of the program with that name, to restore the old behaviour that indicated the SSH Corporation client use <tt class="docutils literal"><span class="pre">sshcorp</span></tt> instead as the magic string. (Martin <<a class="reference external" href="mailto:gzlist%40googlemail.com">gzlist<span>@</span>googlemail<span>.</span>com</a>>, #176292)</li> </ul> </div> <div class="section" id="id30"> <h3>New Features<a class="headerlink" href="#id30" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">commit</span></tt> now has a <tt class="docutils literal"><span class="pre">--commit-time</span></tt> option. (Alexander Sack, #459276)</li> <li><tt class="docutils literal"><span class="pre">-Dhpss</span></tt> now increases logging done when run on the bzr server, similarly to how it works on the client. (John Arbash Meinel)</li> <li>New option <tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">unshelve</span> <span class="pre">--keep</span></tt> applies the changes and leaves them on the shelf. (Martin Pool, Oscar Fuentes, #492091)</li> <li>The <tt class="docutils literal"><span class="pre">BZR_COLUMNS</span></tt> envrionment variable can be set to force bzr to respect a given terminal width. This can be useful when output is redirected or in obscure cases where the default value is not appropriate. Pagers can use it to get a better control of the line lengths. (Vincent Ladeuil)</li> <li>The new command <tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">lp-mirror</span></tt> will request that Launchpad update its mirror of a local branch. This command will only function if launchpadlib is installed. (Jonathan Lange)</li> </ul> </div> <div class="section" id="id31"> <h3>Bug Fixes<a class="headerlink" href="#id31" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>After renaming a file, the dirstate could accidentally reference <tt class="docutils literal"><span class="pre">source\\path</span></tt> rather than <tt class="docutils literal"><span class="pre">source/path</span></tt> on Windows. This might be a source of some dirstate-related failures. (John Arbash Meinel)</li> <li><tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">commit</span></tt> now detects commit messages that looks like file names and issues a warning. (Gioele Barabucci, #73073)</li> <li><tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">ignore</span> <span class="pre">/</span></tt> no longer causes an IndexError. (Gorden Tyler, #456036)</li> <li><tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">log</span> <span class="pre">-n0</span> <span class="pre">-rN</span></tt> should not return revisions beyond its merged revisions. (#325618, #484109, Marius Kruger)</li> <li><tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">merge</span> <span class="pre">--weave</span></tt> and <tt class="docutils literal"><span class="pre">--lca</span></tt> will now create <tt class="docutils literal"><span class="pre">.BASE</span></tt> files for files with conflicts (similar to <tt class="docutils literal"><span class="pre">--merge3</span></tt>). The contents of the file is a synthesis of all bases used for the merge. (John Arbash Meinel, #40412)</li> <li><tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">mv</span> <span class="pre">--quiet</span></tt> really is quiet now. (Gordon Tyler, #271790)</li> <li><tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">serve</span></tt> is more clear about the risk of supplying –allow-writes. (Robert Collins, #84659)</li> <li><tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">serve</span> <span class="pre">--quiet</span></tt> really is quiet now. (Gordon Tyler, #252834)</li> <li>Fix bug with redirected URLs over authenticated HTTP. (Glen Mailer, Neil Martinsen-Burrell, Vincent Ladeuil, #395714)</li> <li>Interactive merge doesn’t leave branch locks behind. (Aaron Bentley)</li> <li>Lots of bugfixes for the test suite on Windows. We should once again have a test suite with no failures on Windows. (John Arbash Meinel)</li> <li><tt class="docutils literal"><span class="pre">osutils.terminal_width()</span></tt> obeys the BZR_COLUMNS environment variable but returns None if the terminal is not a tty (when output is redirected for example). Also fixes its usage under OSes that doesn’t provide termios.TIOCGWINSZ. Make sure the corresponding tests runs on windows too. (Joke de Buhr, Vincent Ladeuil, #353370, #62539) (John Arbash Meinel, Vincent Ladeuil, #492561)</li> <li>Terminate SSH subprocesses when no references to them remain, fixing subprocess and file descriptor leaks. (Andrew Bennetts, #426662)</li> <li>The <tt class="docutils literal"><span class="pre">--hardlink</span></tt> option of <tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">branch</span></tt> and <tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">checkout</span></tt> now works for 2a format trees. Only files unaffected by content filters will be hardlinked. (Andrew Bennetts, #408193)</li> <li>The new glob expansion on Windows would replace all <tt class="docutils literal"><span class="pre">\</span></tt> characters with <tt class="docutils literal"><span class="pre">/</span></tt> even if it there wasn’t a glob to expand, the arg was quoted, etc. Now only change slashes if there is something being glob expanded. (John Arbash Meinel, #485771)</li> <li>Use our faster <tt class="docutils literal"><span class="pre">KnownGraph.heads()</span></tt> functionality when computing the new rich-root heads. This can cut a conversion time in half (mysql from 13.5h => 6.2h) (John Arbash Meinel, #487632)</li> <li>When launching a external diff tool via bzr diff –using, temporary files are no longer created, rather, the path to the file in the working tree is passed to the external diff tool. This allows the file to be edited if the diff tool provides for this. (Gary van der Merwe, #490738)</li> <li>The launchpad-open command can now be used from a subdirectory of a branch, not just from the root of the branch. (Neil Martinsen-Burrell, #489102)</li> </ul> </div> <div class="section" id="id32"> <h3>Improvements<a class="headerlink" href="#id32" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">log</span></tt> is now faster. (Ian Clatworthy)</li> <li><tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">update</span></tt> provides feedback on which branch it is up to date with. (Neil Martinsen-Burrell)</li> <li><tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">upgrade</span></tt> from pre-2a to 2a can be significantly faster (4x). For details see the xml8 patch and heads() improvements. (John Arbash Meinel)</li> <li><tt class="docutils literal"><span class="pre">bzrlib.urlutils.local_path_from_url</span></tt> now accepts ‘<a class="reference external" href="file://localhost/">file://localhost/</a>‘ as well as ‘<a class="reference external" href="file:///">file:///</a>‘ URLs on POSIX. (Michael Hudson)</li> <li>The progress bar now shows only a spinner and per-operation counts, not an overall progress bar. The previous bar was often not correlated with real overall operation progress, either because the operations take nonlinear time, or because at the start of the operation Bazaar couldn’t estimate how much work there was to do. (Martin Pool)</li> </ul> </div> <div class="section" id="id33"> <h3>Documentation<a class="headerlink" href="#id33" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>Lots of documentation tweaks for inline help topics and command help information.</li> </ul> </div> <div class="section" id="id34"> <h3>API Changes<a class="headerlink" href="#id34" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><tt class="docutils literal"><span class="pre">bzrlib.textui</span></tt> (vestigial module) removed. (Martin Pool)</li> <li>The Launchpad plugin now has a function <tt class="docutils literal"><span class="pre">login</span></tt> which will log in to Launchpad with launchpadlib, and <tt class="docutils literal"><span class="pre">load_branch</span></tt> which will return the Launchpad Branch object corresponding to a given Bazaar Branch object. (Jonathan Lange)</li> </ul> </div> <div class="section" id="id35"> <h3>Internals<a class="headerlink" href="#id35" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>New test Feature: <tt class="docutils literal"><span class="pre">ModuleAvailableFeature</span></tt>. It is designed to make it easier to handle what tests you want to run based on what modules can be imported. (Rather than lots of custom-implemented features that were basically copy-and-pasted.) (John Arbash Meinel)</li> <li><tt class="docutils literal"><span class="pre">osutils.timer_func()</span></tt> can be used to get either <tt class="docutils literal"><span class="pre">time.time()</span></tt> or <tt class="docutils literal"><span class="pre">time.clock()</span></tt> when you want to do performance timing. <tt class="docutils literal"><span class="pre">time.time()</span></tt> is limited to 15ms resolution on Windows, but <tt class="docutils literal"><span class="pre">time.clock()</span></tt> gives CPU and not wall-clock time on other platforms. (John Arbash Meinel)</li> <li>Several code paths that were calling <tt class="docutils literal"><span class="pre">Transport.get().read()</span></tt> have been changed to the equalivent <tt class="docutils literal"><span class="pre">Transport.get_bytes()</span></tt>. The main difference is that the latter will explicitly call <tt class="docutils literal"><span class="pre">file.close()</span></tt>, rather than expecting the garbage collector to handle it. This helps with some race conditions on Windows during the test suite and SFTP tests. (John Arbash Meinel)</li> </ul> </div> <div class="section" id="id36"> <h3>Testing<a class="headerlink" href="#id36" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>TestCaseWithMemoryTransport no longer sets $HOME and $BZR_HOME to unicode strings. (Michael Hudson, #464174)</li> </ul> </div> </div> <div class="section" id="bzr-2-1-0b3"> <h2>bzr 2.1.0b3<a class="headerlink" href="#bzr-2-1-0b3" title="Permalink to this headline">¶</a></h2> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Codename:</th><td class="field-body">after sprint recovery</td> </tr> <tr class="field-even field"><th class="field-name">2.1.0b3:</th><td class="field-body">2009-11-16</td> </tr> </tbody> </table> <p>This release was pushed up from its normal release cycle due to a regression in python 2.4 compatibility in 2.1.0b2. Since this regression was caught before 2.1.0b2 was officially announced, the full changelog includes both 2.1.0b3 and 2.1.0b2 changes.</p> <p>Highlights of 2.1.0b3 are: new globbing code for all commands on Windows, the test suite now conforms to python’s trunk enhanced semantics (skip, etc.), and <tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">info</span> <span class="pre">-v</span></tt> will now report the correct branch and repo formats for Remote objects.</p> <div class="section" id="id37"> <h3>New Features<a class="headerlink" href="#id37" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>Users can define a shelve editor to provide shelf functionality at a granularity finer than per-patch-hunk. (Aaron Bentley)</li> </ul> </div> <div class="section" id="id38"> <h3>Bug Fixes<a class="headerlink" href="#id38" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>Fix for shell completion and short options. (Benoît PIERRE)</li> <li>Fix <tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">--profile-imports</span></tt> with Python 2.6. (Martin Pool)</li> <li>Hooks daughter classes should always call the base constructor. (Alexander Belchenko, Vincent Ladeuil, #389648)</li> <li>Improve “Binary files differ” hunk handling. (Aaron Bentley, #436325)</li> <li>On Windows, do glob expansion at the command-line level (as is usually done in bash, etc.) This means that <em>all</em> commands get glob expansion (bzr status, bzr add, bzr mv, etc). It uses a custom command line parser, which allows us to know if a given section was quoted. It means you can now do <tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">ignore</span> <span class="pre">"*.py"</span></tt>. (John Arbash Meinel, #425510, #426410, #194450)</li> <li>Sanitize commit messages that come in from the ‘-m’ flag. We translate ‘rn’ => ‘n’ and a plain ‘r’ => ‘n’. The storage layer doesn’t allow those because XML store silently translate it anyway. (The parser auto-translates rn => n in ways that are hard for us to catch.)</li> <li>Show correct branch and repository format descriptions in <tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">info</span> <span class="pre">-v</span></tt> on a smart server location. (Andrew Bennetts, #196080)</li> <li>The fix for bug #186920 accidentally broke compatibility with python 2.4. (Vincent Ladeuil, #475585)</li> <li>Using <tt class="docutils literal"><span class="pre">Repository.get_commit_builder().record_iter_changes()</span></tt> now correctly sets <tt class="docutils literal"><span class="pre">self.inv_sha1</span></tt> to a sha1 string and <tt class="docutils literal"><span class="pre">self.new_inventory</span></tt> to an Inventory instance after calling <tt class="docutils literal"><span class="pre">self.finish_inventory()</span></tt>. (Previously it accidently set both values as a tuple on <tt class="docutils literal"><span class="pre">self.inv_sha1</span></tt>. This was missed because <tt class="docutils literal"><span class="pre">repo.add_revision</span></tt> ignores the supplied inventory sha1 and recomputes the sha1 from the repo directly. (John Arbash Meinel)</li> <li>Shelve command refuse to run if there is no real terminal. (Alexander Belchenko)</li> <li>Avoid unnecessarily flushing of trace file; it’s now unbuffered at the Python level. (Martin Pool)</li> </ul> </div> <div class="section" id="id39"> <h3>Documentation<a class="headerlink" href="#id39" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>Include Japanese translations for documentation (Inada Naoki)</li> <li>New API <tt class="docutils literal"><span class="pre">ui_factory.make_output_stream</span></tt> to be used for sending bulk (rather than user-interaction) data to stdout. This automatically coordinates with progress bars or other terminal activity, and can be overridden by GUIs. (Martin Pool, 493944)</li> </ul> </div> <div class="section" id="id40"> <h3>Internals<a class="headerlink" href="#id40" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>Some of the core groupcompress functionality now releases the GIL before operation. Similar to how zlib and bz2 operate without the GIL in the core compression and decompression routines. (John Arbash Meinel)</li> </ul> </div> <div class="section" id="id41"> <h3>Testing<a class="headerlink" href="#id41" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>-Dhpssvfs will now trigger on <tt class="docutils literal"><span class="pre">RemoteBzrDir._ensure_real</span></tt>, providing more debugging of VFS access triggers. (Robert Collins)</li> <li>KnownFailure is now signalled to <tt class="docutils literal"><span class="pre">ExtendedTestResult</span></tt> using the same method that Python 2.7 uses - <tt class="docutils literal"><span class="pre">addExpectedFailure</span></tt>. (Robert Collins)</li> <li><tt class="docutils literal"><span class="pre">--parallel=fork</span></tt> is now compatible with –subunit. (Robert Collins, Vincent Ladeuil, #419776)</li> <li>Reporting of failures shows test ids not descriptions and thus shows parameterised tests correctly. (Robert Collins)</li> <li>TestNotApplicable is now handled within the TestCase.run method rather than being looked for within <tt class="docutils literal"><span class="pre">ExtendedTestResult.addError</span></tt>. This provides better handling with other <tt class="docutils literal"><span class="pre">TestResult</span></tt> objects, degrading to sucess rather than error. (Robert Collins)</li> <li>The private method <tt class="docutils literal"><span class="pre">_testConcluded</span></tt> on <tt class="docutils literal"><span class="pre">ExtendedTestResult</span></tt> has been removed - it was empty and unused. (Robert Collins)</li> <li>UnavailableFeature is now handled within the TestCase.run method rather than being looked for within addError. If the Result object does not have an addNotSupported method, addSkip is attempted instead, and failing that addSuccess. (Robert Collins)</li> <li>When a TestResult does not have an addSkip method, skipped tests are now reported as successful tests, rather than as errors. This change is to make it possible to get a clean test run with a less capable TestResult. (Robert Collins)</li> </ul> </div> </div> <div class="section" id="bzr-2-1-0b2"> <h2>bzr 2.1.0b2<a class="headerlink" href="#bzr-2-1-0b2" title="Permalink to this headline">¶</a></h2> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Codename:</th><td class="field-body">a load off my mind</td> </tr> <tr class="field-even field"><th class="field-name">2.1.0b2:</th><td class="field-body">2009-11-02</td> </tr> </tbody> </table> <p>This is our second feature-filled release since 2.0, pushing us down the path to a 2.1.0. Once again, all bugfixes in 2.0.2 are present in 2.1.0b2.</p> <p>Key highlights in this release are: improved handling of failures-during-cleanup for commit, fixing a long-standing bug with <tt class="docutils literal"><span class="pre">bzr+http</span></tt> and shared repositories, all <tt class="docutils literal"><span class="pre">lp:</span></tt> URLs to be resolved behind proxies, and a new StaticTuple datatype, allowing us to reduce memory consumption (50%) and garbage collector overhead (40% faster) for many operations.</p> <ul class="simple"> <li>A new <tt class="docutils literal"><span class="pre">--concurrency</span></tt> option has been added as well as an associated BZR_CONCURRENCY environment variable to specify the number of processes that can be run concurrently when running <tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">selftest</span></tt>. The command-line option overrides the environment variable if both are specified. If none is specified. the number of processes is obtained from the OS as before. (Matt Nordhoff, Vincent Ladeuil)</li> </ul> <div class="section" id="id42"> <h3>Bug Fixes<a class="headerlink" href="#id42" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><tt class="docutils literal"><span class="pre">bzr+http</span></tt> servers no longer give spurious jail break errors when serving branches inside a shared repository. (Andrew Bennetts, #348308)</li> <li>Errors during commit are handled more robustly so that knock-on errors are less likely to occur, and will not obscure the original error if they do occur. This fixes some causes of <tt class="docutils literal"><span class="pre">TooManyConcurrentRequests</span></tt> and similar errors. (Andrew Bennetts, #429747, #243391)</li> <li>Launchpad URLs can now be resolved from behind proxies. (Gordon Tyler, Vincent Ladeuil, #186920)</li> <li>Reduce the strictness for StaticTuple, instead add a debug flag <tt class="docutils literal"><span class="pre">-Dstatic_tuple</span></tt> which will change apis to be strict and raise errors. This way, most users won’t see failures, but developers can improve internals. (John Arbash Meinel, #471193)</li> <li>TreeTransform.adjust_path updates the limbo paths of descendants of adjusted files. (Aaron Bentley)</li> <li>Unicode paths are now handled correctly and consistently by the smart server. (Andrew Bennetts, Michael Hudson, #458762)</li> </ul> </div> <div class="section" id="id43"> <h3>Improvements<a class="headerlink" href="#id43" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>When reading index files, we now use a <tt class="docutils literal"><span class="pre">StaticTuple</span></tt> rather than a plain <tt class="docutils literal"><span class="pre">tuple</span></tt> object. This generally gives a 20% decrease in peak memory, and can give a performance boost up to 40% on large projects. (John Arbash Meinel)</li> <li>Peak memory under certain operations has been reduced significantly. (eg, ‘bzr branch launchpad standalone’ is cut in half) (John Arbash Meinel)</li> </ul> </div> <div class="section" id="id44"> <h3>Documentation<a class="headerlink" href="#id44" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>Filtered views user documentation upgraded to refer to format 2a instead of pre-2.0 formats. (Ian Clatworthy)</li> </ul> </div> <div class="section" id="id45"> <h3>API Changes<a class="headerlink" href="#id45" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>Remove deprecated <tt class="docutils literal"><span class="pre">CLIUIFactory</span></tt>. (Martin Pool)</li> <li><tt class="docutils literal"><span class="pre">UIFactory</span></tt> now has new <tt class="docutils literal"><span class="pre">show_error</span></tt>, <tt class="docutils literal"><span class="pre">show_message</span></tt> and <tt class="docutils literal"><span class="pre">show_warning</span></tt> methods, which can be hooked by non-text UIs. (Martin Pool)</li> </ul> </div> <div class="section" id="id46"> <h3>Internals<a class="headerlink" href="#id46" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>Added <tt class="docutils literal"><span class="pre">bzrlib._simple_set_pyx</span></tt>. This is a hybrid between a Set and a Dict (it only holds keys, but you can lookup the object located at a given key). It has significantly reduced memory consumption versus the builtin objects (1/2 the size of Set, 1/3rd the size of Dict). This is used as the interning structure for StaticTuple objects. (John Arbash Meinel)</li> <li><tt class="docutils literal"><span class="pre">bzrlib._static_tuple_c.StaticTuple</span></tt> is now available and used by the btree index parser and the chk map parser. This class functions similarly to <tt class="docutils literal"><span class="pre">tuple</span></tt> objects. However, it can only point to a limited collection of types. (Currently StaticTuple, str, unicode, None, bool, int, long, float, but not subclasses). This allows us to remove it from the garbage collector (it cannot be in a cycle), it also allows us to intern the objects. In testing, this can reduce peak memory by 20-40%, and significantly improve performance by removing objects from being inspected by the garbage collector. (John Arbash Meinel)</li> <li><tt class="docutils literal"><span class="pre">GroupCompressBlock._ensure_content()</span></tt> will now release the <tt class="docutils literal"><span class="pre">zlib.decompressobj()</span></tt> when the first request is for all of the content. (Previously it would only be released if you made a request for part of the content, and then all of it later.) This turns out to be a significant memory savings, as a <tt class="docutils literal"><span class="pre">zstream</span></tt> carries around approx 260kB of internal state and buffers. (For branching bzr.dev this drops peak memory from 382MB => 345MB.) (John Arbash Meinel)</li> <li>When streaming content between <tt class="docutils literal"><span class="pre">2a</span></tt> format repositories, we now clear caches from earlier versioned files. (So ‘revisions’ is cleared when we start reading ‘inventories’, etc.) This can have a significant impact on peak memory for initial copies (~200MB). (John Arbash Meinel)</li> </ul> </div> </div> <div class="section" id="bzr-2-1-0b1"> <h2>bzr 2.1.0b1<a class="headerlink" href="#bzr-2-1-0b1" title="Permalink to this headline">¶</a></h2> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Codename:</th><td class="field-body">While the cat is away</td> </tr> <tr class="field-even field"><th class="field-name">2.1.0b1:</th><td class="field-body">2009-10-14</td> </tr> </tbody> </table> <p>This is the first development release in the new split “stable” and “development” series. As such, the release is a snapshot of bzr.dev without creating a release candidate first. This release includes a fair amount of internal changes, with deprecated code being removed, and several new feature developments. People looking for a stable code base with only bugfixes should focus on the 2.0.1 release. All bugfixes present in 2.0.1 are present in 2.1.0b1.</p> <p>Highlights include support for <tt class="docutils literal"><span class="pre">bzr+ssh://host/~/homedir</span></tt> style URLs, finer control over the plugin search path via extended BZR_PLUGIN_PATH syntax, visible warnings when extension modules fail to load, and improved error handling during unlocking.</p> <div class="section" id="id47"> <h3>New Features<a class="headerlink" href="#id47" title="Permalink to this headline">¶</a></h3> <ul> <li><p class="first">Bazaar can now send mail through Apple OS X Mail.app. (Brian de Alwis)</p> </li> <li><p class="first"><tt class="docutils literal"><span class="pre">bzr+ssh</span></tt> and <tt class="docutils literal"><span class="pre">bzr</span></tt> paths can now be relative to home directories specified in the URL. Paths starting with a path segment of <tt class="docutils literal"><span class="pre">~</span></tt> are relative to the home directory of the user running the server, and paths starting with <tt class="docutils literal"><span class="pre">~user</span></tt> are relative to the home directory of the named user. For example, for a user “bob” with a home directory of <tt class="docutils literal"><span class="pre">/home/bob</span></tt>, these URLs are all equivalent:</p> <ul class="simple"> <li><tt class="docutils literal"><span class="pre">bzr+ssh://bob@host/~/repo</span></tt></li> <li><tt class="docutils literal"><span class="pre">bzr+ssh://bob@host/~bob/repo</span></tt></li> <li><tt class="docutils literal"><span class="pre">bzr+ssh://bob@host/home/bob/repo</span></tt></li> </ul> <p>If <tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">serve</span></tt> was invoked with a <tt class="docutils literal"><span class="pre">--directory</span></tt> argument, then no home directories outside that directory will be accessible via this method.</p> <p>This is a feature of <tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">serve</span></tt>, so pre-2.1 clients will automatically benefit from this feature when <tt class="docutils literal"><span class="pre">bzr</span></tt> on the server is upgraded. (Andrew Bennetts, #109143)</p> </li> <li><p class="first">Extensions can now be compiled if either Cython or Pyrex is available. Currently Pyrex is preferred, but that may change in the future. (Arkanes)</p> </li> <li><p class="first">Give more control on BZR_PLUGIN_PATH by providing a way to refer to or disable the user, site and core plugin directories. (Vincent Ladeuil, #412930, #316192, #145612)</p> </li> </ul> </div> <div class="section" id="id48"> <h3>Bug Fixes<a class="headerlink" href="#id48" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>Bazaar’s native protocol code now correctly handles EINTR, which most noticeably occurs if you break in to the debugger while connected to a bzr+ssh server. You can now can continue from the debugger (by typing ‘c’) and the process continues. However, note that pressing C-in the shell may still kill the SSH process, which is bug 162509, so you must sent a signal to the bzr process specifically, for example by typing <tt class="docutils literal"><span class="pre">kill</span> <span class="pre">-QUIT</span> <span class="pre">PID</span></tt> in another shell. (Martin Pool, #341535)</li> <li><tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">add</span></tt> in a tree that has files with <tt class="docutils literal"><span class="pre">\r</span></tt> or <tt class="docutils literal"><span class="pre">\n</span></tt> in the filename will issue a warning and skip over those files. (Robert Collins, #3918)</li> <li><tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">dpush</span></tt> now aborts if uncommitted changes (including pending merges) are present in the working tree. The configuration option <tt class="docutils literal"><span class="pre">dpush_strict</span></tt> can be used to set the default for this behavior. (Vincent Ladeuil, #438158)</li> <li><tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">merge</span></tt> and <tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">remove-tree</span></tt> now requires –force if pending merges are present in the working tree. (Vincent Ladeuil, #426344)</li> <li>Clearer message when Bazaar runs out of memory, instead of a <tt class="docutils literal"><span class="pre">MemoryError</span></tt> traceback. (Martin Pool, #109115)</li> <li>Don’t give a warning on Windows when failing to import <tt class="docutils literal"><span class="pre">_readdir_pyx</span></tt> as it is never built. (John Arbash Meinel, #430645)</li> <li>Don’t restrict the command name used to run the test suite. (Vincent Ladeuil, #419950)</li> <li>FTP transports were built differently when the kerberos python module was present leading to obscure failures related to ASCII/BINARY modes. (Vincent Ladeuil, #443041)</li> <li>Network streams now decode adjacent records of the same type into a single stream, reducing layering churn. (Robert Collins)</li> <li>PreviewTree behaves correctly when get_file_mtime is invoked on an unmodified file. (Aaron Bentley, #251532)</li> <li>Registry objects should not use iteritems() when asked to use items(). (Vincent Ladeuil, #430510)</li> <li>Weave based repositories couldn’t be cloned when committers were using domains or user ids embedding ‘.sig’. Now they can. (Matthew Fuller, Vincent Ladeuil, #430868)</li> </ul> </div> <div class="section" id="id49"> <h3>Improvements<a class="headerlink" href="#id49" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>Revision specifiers can now be given in a more DWIM form, without needing explicit prefixes for specifiers like tags or revision id’s. See <tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">help</span> <span class="pre">revisionspec</span></tt> for full details. (Matthew Fuller)</li> <li>Bazaar gives a warning before exiting, and writes into <tt class="docutils literal"><span class="pre">.bzr.log</span></tt>, if compiled extensions can’t be loaded. This typically indicates a packaging or installation problem. In this case Bazaar will keep running using pure-Python versions, but this may be substantially slower. The warning can be disabled by setting <tt class="docutils literal"><span class="pre">ignore_missing_extensions</span> <span class="pre">=</span> <span class="pre">True</span></tt> in <tt class="docutils literal"><span class="pre">bazaar.conf</span></tt>. See also <<a class="reference external" href="https://answers.launchpad.net/bzr/+faq/703">https://answers.launchpad.net/bzr/+faq/703</a>>. (Martin Pool, #406113, #430529)</li> <li>Secondary errors that occur during Branch.unlock and Repository.unlock no longer obscure the original error. These methods now use a new decorator, <tt class="docutils literal"><span class="pre">only_raises</span></tt>. This fixes many causes of <tt class="docutils literal"><span class="pre">TooManyConcurrentRequests</span></tt> and similar errors. (Andrew Bennetts, #429747)</li> </ul> </div> <div class="section" id="id50"> <h3>Documentation<a class="headerlink" href="#id50" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>Describe the new shell-like test feature. (Vincent Ladeuil)</li> <li>Help on hooks no longer says ‘Not deprecated’ for hooks that are currently supported. (Ian Clatworthy, #422415)</li> </ul> </div> <div class="section" id="id51"> <h3>API Changes<a class="headerlink" href="#id51" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><tt class="docutils literal"><span class="pre">bzrlib.user_encoding</span></tt> has been removed; use <tt class="docutils literal"><span class="pre">bzrlib.osutils.get_user_encoding</span></tt> instead. (Martin Pool)</li> <li><tt class="docutils literal"><span class="pre">bzrlib.tests</span></tt> now uses <tt class="docutils literal"><span class="pre">stopTestRun</span></tt> for its <tt class="docutils literal"><span class="pre">TestResult</span></tt> subclasses - the same as python’s unittest module. (Robert Collins)</li> <li><tt class="docutils literal"><span class="pre">diff._get_trees_to_diff</span></tt> has been renamed to <tt class="docutils literal"><span class="pre">diff.get_trees_and_branches_to_diff</span></tt>. It is now a public API, and it returns the old and new branches. (Gary van der Merwe)</li> <li><tt class="docutils literal"><span class="pre">bzrlib.trace.log_error</span></tt>, <tt class="docutils literal"><span class="pre">error</span></tt> and <tt class="docutils literal"><span class="pre">info</span></tt> have been deprecated. (Martin Pool)</li> <li><tt class="docutils literal"><span class="pre">MutableTree.has_changes()</span></tt> does not require a tree parameter anymore. It now defaults to comparing to the basis tree. It now checks for pending merges too. <tt class="docutils literal"><span class="pre">Merger.check_basis</span></tt> has been deprecated and replaced by the corresponding has_changes() calls. <tt class="docutils literal"><span class="pre">Merge.compare_basis</span></tt>, <tt class="docutils literal"><span class="pre">Merger.file_revisions</span></tt> and <tt class="docutils literal"><span class="pre">Merger.ensure_revision_trees</span></tt> have also been deprecated. (Vincent Ladeuil, #440631)</li> <li><tt class="docutils literal"><span class="pre">ProgressTask.note</span></tt> is deprecated. (Martin Pool)</li> </ul> </div> <div class="section" id="id52"> <h3>Internals<a class="headerlink" href="#id52" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>Added <tt class="docutils literal"><span class="pre">-Drelock</span></tt> debug flag. It will <tt class="docutils literal"><span class="pre">note</span></tt> a message every time a repository or branch object is unlocked then relocked the same way. (Andrew Bennetts)</li> <li><tt class="docutils literal"><span class="pre">BTreeLeafParser.extract_key</span></tt> has been tweaked slightly to reduce mallocs while parsing the index (approx 3=>1 mallocs per key read). This results in a 10% speedup while reading an index. (John Arbash Meinel)</li> <li>The <tt class="docutils literal"><span class="pre">bzrlib.lsprof</span></tt> module has a new class <tt class="docutils literal"><span class="pre">BzrProfiler</span></tt> which makes profiling in some situations like callbacks and generators easier. (Robert Collins)</li> </ul> </div> <div class="section" id="id53"> <h3>Testing<a class="headerlink" href="#id53" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>Passing <tt class="docutils literal"><span class="pre">--lsprof-tests</span> <span class="pre">-v</span></tt> to bzr selftest will cause lsprof output to be output for every test. Note that this is very verbose! (Robert Collins)</li> <li>Setting <tt class="docutils literal"><span class="pre">BZR_TEST_PDB=1</span></tt> when running selftest will cause a pdb post_mortem to be triggered when a test failure occurs. (Robert Collins)</li> <li>Shell-like tests can now be written. Code in <tt class="docutils literal"><span class="pre">bzrlib/tests/script.py</span></tt> , documentation in <tt class="docutils literal"><span class="pre">developers/testing.txt</span></tt> for details. (Vincent Ladeuil)</li> <li>Some tests could end up with the same id, that was dormant for a long time. (Vincent Ladeuil, #442980)</li> <li>Stop showing the number of tests due to missing features in the test progress bar. (Martin Pool)</li> <li>Test parameterisation now does a shallow copy, not a deep copy of the test to be parameterised. This is not expected to break external use of test parameterisation, and is substantially faster. (Robert Collins)</li> <li>Tests that try to open a bzr dir on an arbitrary transport will now fail unless they have explicitly permitted the transport via <tt class="docutils literal"><span class="pre">self.permit_url</span></tt>. The standard test factories such as <tt class="docutils literal"><span class="pre">self.get_url</span></tt> will permit the URLs they provide automatically, so only exceptional tests should need to do this. (Robert Collins)</li> <li>The break-in test no longer cares about clean shutdown of the child, instead it is happy if the debugger starts up. (Robert Collins)</li> <li>The full test suite is expected to pass when the C extensions are not present. (Vincent Ladeuil, #430749)</li> </ul> </div> </div> </div> </div> </div> </div> <div class="sphinxsidebar"> <div class="sphinxsidebarwrapper"> <h3><a href="../index.html">Table Of Contents</a></h3> <ul> <li><a class="reference internal" href="#">Bazaar Release Notes</a><ul> <li><a class="reference internal" href="#bzr-2-1-5">bzr 2.1.5</a><ul> <li><a class="reference internal" href="#compatibility-breaks">Compatibility Breaks</a></li> <li><a class="reference internal" href="#new-features">New Features</a></li> <li><a class="reference internal" href="#bug-fixes">Bug Fixes</a></li> <li><a class="reference internal" href="#improvements">Improvements</a></li> <li><a class="reference internal" href="#documentation">Documentation</a></li> <li><a class="reference internal" href="#api-changes">API Changes</a></li> <li><a class="reference internal" href="#internals">Internals</a></li> <li><a class="reference internal" href="#testing">Testing</a></li> </ul> </li> <li><a class="reference internal" href="#bzr-2-1-4">bzr 2.1.4</a><ul> <li><a class="reference internal" href="#id1">Compatibility Breaks</a></li> <li><a class="reference internal" href="#id2">New Features</a></li> <li><a class="reference internal" href="#id3">Bug Fixes</a></li> <li><a class="reference internal" href="#id4">Improvements</a></li> <li><a class="reference internal" href="#id5">Documentation</a></li> <li><a class="reference internal" href="#id6">API Changes</a></li> <li><a class="reference internal" href="#id7">Internals</a></li> <li><a class="reference internal" href="#id8">Testing</a></li> </ul> </li> <li><a class="reference internal" href="#bzr-2-1-3">bzr 2.1.3</a><ul> <li><a class="reference internal" href="#id9">Bug Fixes</a></li> <li><a class="reference internal" href="#id10">Testing</a></li> </ul> </li> <li><a class="reference internal" href="#bzr-2-1-2">bzr 2.1.2</a><ul> <li><a class="reference internal" href="#id11">Bug Fixes</a></li> <li><a class="reference internal" href="#id12">Internals</a></li> </ul> </li> <li><a class="reference internal" href="#bzr-2-1-1">bzr 2.1.1</a><ul> <li><a class="reference internal" href="#id13">Bug Fixes</a></li> <li><a class="reference internal" href="#id14">Documentation</a></li> <li><a class="reference internal" href="#id15">API Changes</a></li> </ul> </li> <li><a class="reference internal" href="#bzr-2-1-0">bzr 2.1.0</a><ul> <li><a class="reference internal" href="#id16">Bug Fixes</a></li> <li><a class="reference internal" href="#id17">Improvements</a></li> <li><a class="reference internal" href="#id18">API Changes</a></li> <li><a class="reference internal" href="#id19">Internals</a></li> <li><a class="reference internal" href="#id20">API Changes</a></li> </ul> </li> <li><a class="reference internal" href="#bzr-2-1-0rc2">bzr 2.1.0rc2</a><ul> <li><a class="reference internal" href="#id21">API Changes</a></li> </ul> </li> <li><a class="reference internal" href="#bzr-2-1-0rc1">bzr 2.1.0rc1</a><ul> <li><a class="reference internal" href="#id22">New Features</a></li> <li><a class="reference internal" href="#id23">Bug Fixes</a></li> <li><a class="reference internal" href="#id24">Improvements</a></li> <li><a class="reference internal" href="#id25">Documentation</a></li> <li><a class="reference internal" href="#id26">API Changes</a></li> <li><a class="reference internal" href="#id27">Internals</a></li> <li><a class="reference internal" href="#id28">Testing</a></li> </ul> </li> <li><a class="reference internal" href="#bzr-2-1-0b4">bzr 2.1.0b4</a><ul> <li><a class="reference internal" href="#id29">Compatibility Breaks</a></li> <li><a class="reference internal" href="#id30">New Features</a></li> <li><a class="reference internal" href="#id31">Bug Fixes</a></li> <li><a class="reference internal" href="#id32">Improvements</a></li> <li><a class="reference internal" href="#id33">Documentation</a></li> <li><a class="reference internal" href="#id34">API Changes</a></li> <li><a class="reference internal" href="#id35">Internals</a></li> <li><a class="reference internal" href="#id36">Testing</a></li> </ul> </li> <li><a class="reference internal" href="#bzr-2-1-0b3">bzr 2.1.0b3</a><ul> <li><a class="reference internal" href="#id37">New Features</a></li> <li><a class="reference internal" href="#id38">Bug Fixes</a></li> <li><a class="reference internal" href="#id39">Documentation</a></li> <li><a class="reference internal" href="#id40">Internals</a></li> <li><a class="reference internal" href="#id41">Testing</a></li> </ul> </li> <li><a class="reference internal" href="#bzr-2-1-0b2">bzr 2.1.0b2</a><ul> <li><a class="reference internal" href="#id42">Bug Fixes</a></li> <li><a class="reference internal" href="#id43">Improvements</a></li> <li><a class="reference internal" href="#id44">Documentation</a></li> <li><a class="reference internal" href="#id45">API Changes</a></li> <li><a class="reference internal" href="#id46">Internals</a></li> </ul> </li> <li><a class="reference internal" href="#bzr-2-1-0b1">bzr 2.1.0b1</a><ul> <li><a class="reference internal" href="#id47">New Features</a></li> <li><a class="reference internal" href="#id48">Bug Fixes</a></li> <li><a class="reference internal" href="#id49">Improvements</a></li> <li><a class="reference internal" href="#id50">Documentation</a></li> <li><a class="reference internal" href="#id51">API Changes</a></li> <li><a class="reference internal" href="#id52">Internals</a></li> <li><a class="reference internal" href="#id53">Testing</a></li> </ul> </li> </ul> </li> </ul> <h4>Previous topic</h4> <p class="topless"><a href="bzr-2.2.html" title="previous chapter">Bazaar Release Notes</a></p> <h4>Next topic</h4> <p class="topless"><a href="bzr-2.0.html" title="next chapter">Bazaar Release Notes</a></p> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="../_sources/release-notes/bzr-2.1.txt" rel="nofollow">Show Source</a></li> </ul> <div id="searchbox" style="display: none"> <h3>Quick search</h3> <form class="search" action="../search.html" method="get"> <input type="text" name="q" /> <input type="submit" value="Go" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> <p class="searchtip" style="font-size: 90%"> Enter search terms or a module, class or function name. </p> </div> <script type="text/javascript">$('#searchbox').show(0);</script> </div> </div> <div class="clearer"></div> </div> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="bzr-2.0.html" title="Bazaar Release Notes" >next</a></li> <li class="right" > <a href="bzr-2.2.html" title="Bazaar Release Notes" >previous</a> |</li> <li><a href="http://bazaar.canonical.com/"> <img src="../_static/bzr icon 16.png" /> Home</a> | </li> <a href="http://doc.bazaar.canonical.com/en/">Documentation</a> | </li> <li><a href="../index.html">Table of Contents (2.6.0)</a> »</li> <li><a href="index.html" >Bazaar Release Notes</a> »</li> </ul> </div> <div class="footer"> © Copyright 2009-2011 Canonical Ltd. Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3. </div> </body> </html>