/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to doc/en/user-guide/merging_changes.txt

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 19:09:26 UTC
  • mfrom: (6622.1.36 breezy)
  • Revision ID: jelmer@jelmer.uk-20170521190926-5vtz8xaf0e9ylrpc
Merge rename to breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
To incorporate changes from another branch, use the ``merge`` command.
17
17
Its syntax is::
18
18
 
19
 
  bzr merge [URL]
 
19
  brz merge [URL]
20
20
 
21
21
If no URL is given, a default is used, initially the branch this branch
22
22
originated from.
23
23
For example, if Bill made a branch from Mary's work, he can merge her
24
24
subsequent changes by simply typing this::
25
25
 
26
 
  bzr merge
 
26
  brz merge
27
27
 
28
28
On the other hand, Mary might want to merge into her branch the work Bill
29
29
has done in his. In this case, she needs to explicitly give the URL the
30
30
first time, e.g.::
31
31
 
32
 
  bzr merge bzr+ssh://mary@bill-laptop/cool-repo/cool-trunk
 
32
  brz merge bzr+ssh://mary@bill-laptop/cool-repo/cool-trunk
33
33
 
34
34
This sets the default merge branch if one is not already set.  Use
35
35
``--no-remember`` to avoid setting it. To change the default after it is set,
38
38
How does merging work?
39
39
----------------------
40
40
 
41
 
A variety of algorithms exist for merging changes. Bazaar's
 
41
A variety of algorithms exist for merging changes. Breezy's
42
42
default algorithm is a variation of *3-way merging* which
43
43
works as follows. Given an ancestor A and two branches B and C,
44
44
the following table provides the rules used.
62
62
After any conflicts are resolved, the merge needs to be committed.
63
63
For example::
64
64
 
65
 
  bzr commit -m "Merged Mary's changes"
 
65
  brz commit -m "Merged Mary's changes"
66
66
 
67
67
Even if there are no conflicts, an explicit commit is still required.
68
 
Unlike some other tools, this is considered a feature in Bazaar.
 
68
Unlike some other tools, this is considered a feature in Breezy.
69
69
A clean merge is not necessarily a good merge so making the commit
70
70
a separate explicit step allows you to run your test suite first to
71
71
verify all is good. If problems are found, you should correct them
74
74
Merge tracking
75
75
--------------
76
76
 
77
 
One of the most important features of Bazaar is distributed,
 
77
One of the most important features of Breezy is distributed,
78
78
high quality *merge tracking*.
79
 
In other words, Bazaar remembers what has been merged already and
 
79
In other words, Breezy remembers what has been merged already and
80
80
uses that information to intelligently choose the best ancestor for
81
81
a merge, minimizing the number and size of conflicts.
82
82
 
83
83
If you are a refugee from many other VCS tools, it can be really
84
84
hard to "unlearn" the *please-let-me-avoid-merging-at-any-cost* habit.
85
 
Bazaar lets you safely merge as often as you like with other people.
 
85
Breezy lets you safely merge as often as you like with other people.
86
86
By working in a peer-to-peer manner when it makes sense to do so, you
87
87
also avoid using a central branch as an "integration swamp", keeping
88
88
its quality higher. When the change you're collaborating on is