Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > 27647990744ebd9cfe32398f37f67e20 > files > 3106

bzr-2.6.0-11.1.mga5.i586.rpm

<!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>merge &mdash; 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 User Reference" href="index.html" />
    <link rel="next" title="missing" href="missing-help.html" />
    <link rel="prev" title="ls" href="ls-help.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="missing-help.html" title="missing"
             accesskey="N">next</a></li>
        <li class="right" >
          <a href="ls-help.html" title="ls"
             accesskey="P">previous</a> |</li>
<li><a href="http://bazaar.canonical.com/">
    <img src="../_static/bzr icon 16.png" /> Home</a>&nbsp;|&nbsp;</li>
<a href="http://doc.bazaar.canonical.com/en/">Documentation</a>&nbsp;|&nbsp;</li>

        <li><a href="../index.html">Table of Contents (2.6.0)</a> &raquo;</li>

          <li><a href="index.html" accesskey="U">Bazaar User Reference</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="merge">
<h1>merge<a class="headerlink" href="#merge" title="Permalink to this headline">ΒΆ</a></h1>
<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">Purpose:</th><td class="field-body"><p class="first">Perform a three-way merge.</p>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Usage:</th><td class="field-body"><p class="first">bzr merge [LOCATION]</p>
</td>
</tr>
<tr class="field-odd field"><th class="field-name">Options:</th><td class="field-body"><table class="first docutils option-list" frame="void" rules="none">
<col class="option" />
<col class="description" />
<tbody valign="top">
<tr><td class="option-group">
<kbd><span class="option">--pull</span></kbd></td>
<td><p class="first last">If the destination is already completely merged into
the source, pull from the source rather than merging.
When this happens, you do not need to commit the
result.</p>
</td></tr>
<tr><td class="option-group">
<kbd><span class="option">--remember</span></kbd></td>
<td><p class="first last">Remember the specified location as a default.</p>
</td></tr>
<tr><td class="option-group" colspan="2">
<kbd><span class="option">-i</span>, <span class="option">--interactive</span></kbd></td>
</tr>
<tr><td>&nbsp;</td><td><p class="first last">Select changes interactively.</p>
</td></tr>
<tr><td class="option-group">
<kbd><span class="option">--force</span></kbd></td>
<td><p class="first last">Merge even if the destination tree has uncommitted
changes.</p>
</td></tr>
<tr><td class="option-group">
<kbd><span class="option">-v</span>, <span class="option">--verbose</span></kbd></td>
<td><p class="first last">Display more information.</p>
</td></tr>
<tr><td class="option-group">
<kbd><span class="option">--reprocess</span></kbd></td>
<td><p class="first last">Reprocess to reduce spurious conflicts.</p>
</td></tr>
<tr><td class="option-group">
<kbd><span class="option">-h</span>, <span class="option">--help</span></kbd></td>
<td><p class="first last">Show help message.</p>
</td></tr>
<tr><td class="option-group">
<kbd><span class="option">-q</span>, <span class="option">--quiet</span></kbd></td>
<td><p class="first last">Only display errors and warnings.</p>
</td></tr>
<tr><td class="option-group" colspan="2">
<kbd><span class="option">-d <var>ARG</var></span>, <span class="option">--directory=<var>ARG</var></span></kbd></td>
</tr>
<tr><td>&nbsp;</td><td><p class="first last">Branch to merge into, rather than the one containing
the working directory.</p>
</td></tr>
<tr><td class="option-group">
<kbd><span class="option">--uncommitted</span></kbd></td>
<td><p class="first last">Apply uncommitted changes from a working copy, instead
of branch changes.</p>
</td></tr>
<tr><td class="option-group">
<kbd><span class="option">--usage</span></kbd></td>
<td><p class="first last">Show usage message and options.</p>
</td></tr>
<tr><td class="option-group">
<kbd><span class="option">--show-base</span></kbd></td>
<td><p class="first last">Show base revision text in conflicts.</p>
</td></tr>
<tr><td class="option-group">
<kbd><span class="option">--preview</span></kbd></td>
<td><p class="first last">Instead of merging, show a diff of the merge.</p>
</td></tr>
<tr><td class="option-group" colspan="2">
<kbd><span class="option">-c <var>ARG</var></span>, <span class="option">--change=<var>ARG</var></span></kbd></td>
</tr>
<tr><td>&nbsp;</td><td><p class="first last">Select changes introduced by the specified revision.
See also &#8220;help revisionspec&#8221;.</p>
</td></tr>
<tr><td class="option-group" colspan="2">
<kbd><span class="option">-r <var>ARG</var></span>, <span class="option">--revision=<var>ARG</var></span></kbd></td>
</tr>
<tr><td>&nbsp;</td><td><p class="first last">See &#8220;help revisionspec&#8221; for details.</p>
</td></tr>
</tbody>
</table>
<dl class="docutils">
<dt>Merge algorithm:</dt>
<dd><table class="first last docutils option-list" frame="void" rules="none">
<col class="option" />
<col class="description" />
<tbody valign="top">
<tr><td class="option-group" colspan="2">
<kbd><span class="option">--merge-type=<var>ARG</var></span></kbd></td>
</tr>
<tr><td>&nbsp;</td><td><p class="first last">Select a particular merge algorithm.</p>
</td></tr>
<tr><td class="option-group">
<kbd><span class="option">--diff3</span></kbd></td>
<td><p class="first last">Merge using external diff3.</p>
</td></tr>
<tr><td class="option-group">
<kbd><span class="option">--lca</span></kbd></td>
<td><p class="first last">LCA-newness merge.</p>
</td></tr>
<tr><td class="option-group">
<kbd><span class="option">--merge3</span></kbd></td>
<td><p class="first last">Native diff3-style merge.</p>
</td></tr>
<tr><td class="option-group">
<kbd><span class="option">--weave</span></kbd></td>
<td><p class="first last">Weave-based merge.</p>
</td></tr>
</tbody>
</table>
</dd>
</dl>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Description:</th><td class="field-body"><p class="first">The source of the merge can be specified either in the form of a branch,
or in the form of a path to a file containing a merge directive generated
with bzr send. If neither is specified, the default is the upstream branch
or the branch most recently merged using &#8211;remember.  The source of the
merge may also be specified in the form of a path to a file in another
branch:  in this case, only the modifications to that file are merged into
the current working tree.</p>
<p>When merging from a branch, by default bzr will try to merge in all new
work from the other branch, automatically determining an appropriate base
revision.  If this fails, you may need to give an explicit base.</p>
<p>To pick a different ending revision, pass &#8220;&#8211;revision OTHER&#8221;.  bzr will
try to merge in all new work up to and including revision OTHER.</p>
<p>If you specify two values, &#8220;&#8211;revision BASE..OTHER&#8221;, only revisions BASE
through OTHER, excluding BASE but including OTHER, will be merged.  If this
causes some revisions to be skipped, i.e. if the destination branch does
not already contain revision BASE, such a merge is commonly referred to as
a &#8220;cherrypick&#8221;. Unlike a normal merge, Bazaar does not currently track
cherrypicks. The changes look like a normal commit, and the history of the
changes from the other branch is not stored in the commit.</p>
<p>Revision numbers are always relative to the source branch.</p>
<p>Merge will do its best to combine the changes in two branches, but there
are some kinds of problems only a human can fix.  When it encounters those,
it will mark a conflict.  A conflict means that you need to fix something,
before you can commit.</p>
<p>Use bzr resolve when you have fixed a problem.  See also bzr conflicts.</p>
<p>If there is no default branch set, the first merge will set it (use
&#8211;no-remember to avoid setting it). After that, you can omit the branch
to use the default.  To change the default, use &#8211;remember. The value will
only be saved if the remote location can be accessed.</p>
<p>The results of the merge are placed into the destination working
directory, where they can be reviewed (with bzr diff), tested, and then
committed to record the result of the merge.</p>
<p>merge refuses to run if there are any uncommitted changes, unless
&#8211;force is given.  If &#8211;force is given, then the changes from the source
will be merged with the current working tree, including any uncommitted
changes in the tree.  The &#8211;force option can also be used to create a
merge revision which has more than two parents.</p>
<p>If one would like to merge changes from the working tree of the other
branch without merging any committed revisions, the &#8211;uncommitted option
can be given.</p>
<p>To select only some changes to merge, use &#8220;merge -i&#8221;, which will prompt
you to apply each diff hunk and file change, similar to &#8220;shelve&#8221;.</p>
</td>
</tr>
<tr class="field-odd field"><th class="field-name">Examples:</th><td class="field-body"><p class="first">To merge all new revisions from bzr.dev:</p>
<div class="highlight-python"><div class="highlight"><pre>bzr merge ../bzr.dev
</pre></div>
</div>
<p>To merge changes up to and including revision 82 from bzr.dev:</p>
<div class="highlight-python"><div class="highlight"><pre>bzr merge -r 82 ../bzr.dev
</pre></div>
</div>
<p>To merge the changes introduced by 82, without previous changes:</p>
<div class="highlight-python"><div class="highlight"><pre>bzr merge -r 81..82 ../bzr.dev
</pre></div>
</div>
<p>To apply a merge directive contained in /tmp/merge:</p>
<div class="highlight-python"><div class="highlight"><pre>bzr merge /tmp/merge
</pre></div>
</div>
<p>To create a merge revision with three parents from two branches
feature1a and feature1b:</p>
<blockquote>
<div><p>bzr merge ../feature1a
bzr merge ../feature1b &#8211;force
bzr commit -m &#8216;revision with three parents&#8217;</p>
</div></blockquote>
</td>
</tr>
<tr class="field-even field"><th class="field-name">See also:</th><td class="field-body"><p class="first last"><a class="reference internal" href="remerge-help.html"><em>remerge</em></a>, <a class="reference internal" href="send-help.html"><em>send</em></a>, <a class="reference internal" href="status-flags-help.html"><em>status-flags</em></a>, <a class="reference internal" href="update-help.html"><em>update</em></a></p>
</td>
</tr>
</tbody>
</table>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
  <h4>Previous topic</h4>
  <p class="topless"><a href="ls-help.html"
                        title="previous chapter">ls</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="missing-help.html"
                        title="next chapter">missing</a></p>
  <h3>This Page</h3>
  <ul class="this-page-menu">
    <li><a href="../_sources/user-reference/merge-help.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="missing-help.html" title="missing"
             >next</a></li>
        <li class="right" >
          <a href="ls-help.html" title="ls"
             >previous</a> |</li>
<li><a href="http://bazaar.canonical.com/">
    <img src="../_static/bzr icon 16.png" /> Home</a>&nbsp;|&nbsp;</li>
<a href="http://doc.bazaar.canonical.com/en/">Documentation</a>&nbsp;|&nbsp;</li>

        <li><a href="../index.html">Table of Contents (2.6.0)</a> &raquo;</li>

          <li><a href="index.html" >Bazaar User Reference</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright 2009-2011 Canonical Ltd.
      Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
    </div>
  </body>
</html>