/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/tutorials/tutorial.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:
2
2
.. into HTML or text.  In the future we plan to extract the example commands
3
3
.. and automatically test them.
4
4
 
5
 
.. This text was previously on the wiki at
6
 
.. http://bazaar.canonical.com/IntroductionToBzr
7
 
.. but has been moved into the source tree so it can be kept in sync with
8
 
.. the source and possibly automatically checked.
9
 
 
10
5
===============
11
 
Bazaar Tutorial
 
6
Breezy Tutorial
12
7
===============
13
8
 
14
9
 
16
11
============
17
12
 
18
13
If you are already familiar with decentralized version control, then
19
 
please feel free to skip ahead to "Introducing Yourself to Bazaar". If,
 
14
please feel free to skip ahead to "Introducing Yourself to Breezy". If,
20
15
on the other hand, you are familiar with version control but not
21
16
decentralized version control, then please start at "How DVCS is
22
17
different." Otherwise, get some coffee or tea, get comfortable and get
32
27
deleted the configuration file for your mailserver or perhaps mauled the
33
28
source code for a pet project. Whatever happened, you have just deleted
34
29
important information that you would desperately like to get back. If this
35
 
has ever happened to you, then you are probably ready for Bazaar.
 
30
has ever happened to you, then you are probably ready for Breezy.
36
31
 
37
32
Version control systems (which I'll henceforth call VCS) such as
38
 
Bazaar give you the ability to track changes for a directory by turning
 
33
Breezy give you the ability to track changes for a directory by turning
39
34
it into something slightly more complicated than a directory that we call
40
35
a **branch**. The branch not only stores how the directory looks right
41
36
now, but also how it looked at various points in the past. Then, when you
73
68
 
74
69
Decentralized Version Control Systems (which I'll call DVCS after this
75
70
point) deal with this problem by keeping branches on the same machine as
76
 
the client. In Bazaar's case, the branch is kept in the same place as
 
71
the client. In Breezy's case, the branch is kept in the same place as
77
72
the code that is being version controlled. This allows the user to save
78
73
his changes (**commit**) whenever he wants -- even if he is offline. The
79
74
user only needs internet access when he wants to access the changes in
84
79
the changes for a directory such as file and subdirectory changes.
85
80
Performing this tracking by hand is a awkward process that over time
86
81
becomes unwieldy. That is, until one considers version control tools such
87
 
as Bazaar. These tools automate the process of storing data by creating
 
82
as Breezy. These tools automate the process of storing data by creating
88
83
a **revision** of the directory tree whenever the user asks.
89
84
 
90
 
Version control software such as Bazaar can do much more than just
91
 
storage and performing undo.  For example, with Bazaar a developer can
 
85
Version control software such as Breezy can do much more than just
 
86
storage and performing undo.  For example, with Breezy a developer can
92
87
take the modifications in one branch of software and apply them to a
93
88
related branch -- even if those changes exist in a branch owned by
94
89
somebody else. This allows developers to cooperate without giving
95
90
write access to the repository.
96
91
 
97
 
Bazaar remembers the ''ancestry'' of a revision: the previous revisions
 
92
Breezy remembers the ''ancestry'' of a revision: the previous revisions
98
93
that it is based upon.  A single revision may have more than one direct
99
94
descendant, each with different changes, representing a divergence in the
100
 
evolution of the tree. By branching, Bazaar allows multiple people to
 
95
evolution of the tree. By branching, Breezy allows multiple people to
101
96
cooperate on the evolution of a project, without all needing to work in
102
97
strict lock-step.  Branching can be useful even for a single developer.
103
98
 
104
 
Introducing yourself to Bazaar
 
99
Introducing yourself to Breezy
105
100
==============================
106
101
 
107
 
Bazaar installs a single new command, **bzr**.  Everything else is a
108
 
subcommand of this.  You can get some help with ``bzr help``. Some arguments
109
 
are grouped in topics: ``bzr help topics`` to see which topics are available.
 
102
Breezy installs a single new command, **brz**.  Everything else is a
 
103
subcommand of this.  You can get some help with ``brz help``. Some arguments
 
104
are grouped in topics: ``brz help topics`` to see which topics are available.
110
105
 
111
106
One function of a version control system is to keep track of who changed
112
107
what.  In a decentralized system, that requires an identifier for each
113
108
author that is globally unique.  Most people already have one of these: an
114
 
email address. Bazaar is smart enough to automatically generate an email
 
109
email address. Breezy is smart enough to automatically generate an email
115
110
address by looking up your username and hostname. If you don't like the
116
 
guess that Bazaar makes, then three options exist:
 
111
guess that Breezy makes, then three options exist:
117
112
 
118
 
1. Set an email address via ``bzr whoami``.  This is the simplest way.
 
113
1. Set an email address via ``brz whoami``.  This is the simplest way.
119
114
 
120
115
   To set a global identity, use::
121
116
 
122
 
   % bzr whoami "Your Name <email@example.com>"
 
117
   % brz whoami "Your Name <email@example.com>"
123
118
 
124
119
   If you'd like to use a different address for a specific branch, enter
125
120
   the branch folder and use::
126
121
 
127
 
   % bzr whoami --branch "Your Name <email@example.com>"
 
122
   % brz whoami --branch "Your Name <email@example.com>"
128
123
 
129
124
#. Setting the email address in the ``~/.bazaar/bazaar.conf`` [1]_ by
130
125
   adding the following lines.  Please note that  ``[DEFAULT]`` is case
142
137
 
143
138
 
144
139
#. Overriding the two previous options by setting the global environment
145
 
   variable ``$BZR_EMAIL`` or ``$EMAIL`` (``$BZR_EMAIL`` will take
 
140
   variable ``$brz_EMAIL`` or ``$EMAIL`` (``$brz_EMAIL`` will take
146
141
   precedence) to your full email address.
147
142
 
148
143
.. [1] On Windows, the users configuration files can be found in the
149
144
   application data directory. So instead of ``~/.bazaar/branch.conf``
150
145
   the configuration file can be found as:
151
 
   ``C:\Documents and Settings\<username>\Application Data\Bazaar\2.0\branch.conf``.
 
146
   ``C:\Documents and Settings\<username>\Application Data\Breezy\2.0\branch.conf``.
152
147
   The same is true for ``locations.conf``, ``ignore``, and the
153
148
   ``plugins`` directory.
154
149
 
156
151
=================
157
152
 
158
153
History is by default stored in the .bzr directory of the branch. In a
159
 
future version of Bazaar, there will be a facility to store it in a
 
154
future version of Breezy, there will be a facility to store it in a
160
155
separate repository, which may be remote.
161
156
 
162
 
We create a new branch by running ``bzr init`` in an existing directory::
 
157
We create a new branch by running ``brz init`` in an existing directory::
163
158
 
164
159
    % mkdir tutorial
165
160
    % cd tutorial
166
161
    % ls -a
167
162
    ./  ../
168
163
    % pwd
169
 
    /home/mbp/work/bzr.test/tutorial
 
164
    /home/mbp/work/brz.test/tutorial
170
165
    %
171
 
    % bzr init
 
166
    % brz init
172
167
    % ls -aF
173
168
    ./  ../  .bzr/
174
169
    %
178
173
to it will be recorded by the system::
179
174
 
180
175
    % echo 'hello world' > hello.txt
181
 
    % bzr status
 
176
    % brz status
182
177
    unknown:
183
178
      hello.txt
184
 
    % bzr add hello.txt
 
179
    % brz add hello.txt
185
180
    added hello.txt
186
 
    % bzr status
 
181
    % brz status
187
182
    added:
188
183
      hello.txt
189
184
 
190
185
 
191
 
If you add the wrong file, simply use ``bzr remove`` to make it
 
186
If you add the wrong file, simply use ``brz remove`` to make it
192
187
unversioned again.  This does not delete the working copy in this case,
193
188
though it may in others [2]_.
194
189
 
195
 
.. [2] ``bzr remove`` will remove the working copy if it is currently
 
190
.. [2] ``brz remove`` will remove the working copy if it is currently
196
191
   versioned, but has no changes from the last committed version.  You
197
192
   can force the file to always be kept with the ``--keep`` option to
198
 
   ``bzr remove``, or force it to always be deleted with ``--force``.
 
193
   ``brz remove``, or force it to always be deleted with ``--force``.
199
194
 
200
195
Branch locations
201
196
================
203
198
All history is stored in a branch, which is just an on-disk directory
204
199
containing control files.  By default there is no separate repository or
205
200
database as used in svn or svk. You can choose to create a repository if
206
 
you want to (see the ``bzr init-repo`` command). You may wish to do this
 
201
you want to (see the ``brz init-repo`` command). You may wish to do this
207
202
if you have very large branches, or many branches of a moderately sized
208
203
project.
209
204
 
210
205
You'll usually refer to branches on your computer's filesystem just by
211
 
giving the name of the directory containing the branch.  bzr also supports
 
206
giving the name of the directory containing the branch.  brz also supports
212
207
accessing branches over SSH, HTTP and SFTP, amongst other things::
213
208
 
214
 
    % bzr log bzr+ssh://bazaar.launchpad.net/~bzr-pqm/bzr/bzr.dev/
215
 
    % bzr log http://bazaar.launchpad.net/~bzr-pqm/bzr/bzr.dev/
216
 
    % bzr log sftp://bazaar.launchpad.net/~bzr-pqm/bzr/bzr.dev/
 
209
    % brz log brz+ssh://code.launchpad.net/~brz/brz/brz.dev/
 
210
    % brz log http://code.launchpad.net/~brz/brz/brz.dev/
 
211
    % brz log sftp://code.launchpad.net/~brz/brz/brz.dev/
217
212
 
218
 
By installing bzr plugins you can also access branches using the rsync
 
213
By installing brz plugins you can also access branches using the rsync
219
214
protocol.
220
215
 
221
216
See the `Publishing your branch`_ section for more about how to put your
233
228
committing what you intend to, and as a chance to rethink your work before
234
229
you permanently record it.
235
230
 
236
 
Two bzr commands are particularly useful here: **status** and **diff**.
 
231
Two brz commands are particularly useful here: **status** and **diff**.
237
232
 
238
 
bzr status
 
233
brz status
239
234
----------
240
235
 
241
236
The **status** command tells you what changes have been made to the
242
237
working directory since the last revision::
243
238
 
244
 
    % bzr status
 
239
    % brz status
245
240
    modified:
246
241
       foo
247
242
 
248
 
``bzr status`` hides "boring" files that are either unchanged or ignored.
 
243
``brz status`` hides "boring" files that are either unchanged or ignored.
249
244
The status command can optionally be given the name of some files or
250
245
directories to check.
251
246
 
252
 
bzr diff
 
247
brz diff
253
248
--------
254
249
 
255
250
The **diff** command shows the full text of changes to all files as a
256
251
standard unified diff.  This can be piped through many programs such as
257
252
''patch'', ''diffstat'', ''filterdiff'' and ''colordiff''::
258
253
 
259
 
    % bzr diff
 
254
    % brz diff
260
255
    === added file 'hello.txt'
261
256
    --- hello.txt   1970-01-01 00:00:00 +0000
262
257
    +++ hello.txt   2005-10-18 14:23:29 +0000
267
262
With the ``-r`` option, the tree is compared to an earlier revision, or
268
263
the differences between two versions are shown::
269
264
 
270
 
    % bzr diff -r 1000..          # everything since r1000
271
 
    % bzr diff -r 1000..1100      # changes from 1000 to 1100
 
265
    % brz diff -r 1000..          # everything since r1000
 
266
    % brz diff -r 1000..1100      # changes from 1000 to 1100
272
267
 
273
 
The ``--diff-options`` option causes bzr to run the external diff program,
 
268
The ``--diff-options`` option causes brz to run the external diff program,
274
269
passing options.  For example::
275
270
 
276
 
    % bzr diff --diff-options --side-by-side foo
 
271
    % brz diff --diff-options --side-by-side foo
277
272
 
278
273
Some projects prefer patches to show a prefix at the start of the path
279
274
for old and new files.  The ``--prefix`` option can be used to provide
280
275
such a prefix.
281
 
As a shortcut, ``bzr diff -p1`` produces a form that works with the
 
276
As a shortcut, ``brz diff -p1`` produces a form that works with the
282
277
command ``patch -p1``.
283
278
 
284
279
 
288
283
When the working tree state is satisfactory, it can be **committed** to
289
284
the branch, creating a new revision holding a snapshot of that state.
290
285
 
291
 
bzr commit
 
286
brz commit
292
287
----------
293
288
 
294
289
The **commit** command takes a message describing the changes in the
300
295
 
301
296
::
302
297
 
303
 
    % bzr commit -m "added my first file"
 
298
    % brz commit -m "added my first file"
304
299
 
305
300
You can also use the ``-F`` option to take the message from a file.  Some
306
301
people like to make notes for a commit message while they work, then
310
305
Message from an editor
311
306
----------------------
312
307
 
313
 
If you use neither the ``-m`` nor the ``-F`` option then bzr will open an
 
308
If you use neither the ``-m`` nor the ``-F`` option then brz will open an
314
309
editor for you to enter a message.  The editor to run is controlled by
315
310
your ``$VISUAL`` or ``$EDITOR`` environment variable, which can be overridden
316
 
by the ``editor`` setting in ``~/.bazaar/bazaar.conf``; ``$BZR_EDITOR`` will
 
311
by the ``editor`` setting in ``~/.bazaar/bazaar.conf``; ``$brz_EDITOR`` will
317
312
override either of the above mentioned editor options.  If you quit the
318
313
editor without making any changes, the commit will be cancelled.
319
314
 
334
329
Marking bugs as fixed
335
330
---------------------
336
331
 
337
 
Many changes to a project are as a result of fixing bugs. Bazaar can keep
 
332
Many changes to a project are as a result of fixing bugs. Breezy can keep
338
333
metadata about bugs you fixed when you commit them. To do this you use the
339
334
``--fixes`` option. This option takes an argument that looks like this::
340
335
 
341
 
    % bzr commit --fixes <tracker>:<id>
 
336
    % brz commit --fixes <tracker>:<id>
342
337
 
343
338
Where ``<tracker>`` is an identifier for a bug tracker and ``<id>`` is an
344
339
identifier for a bug that is tracked in that bug tracker. ``<id>`` is usually
345
 
a number. Bazaar already knows about a few popular bug trackers. They are 
 
340
a number. Breezy already knows about a few popular bug trackers. They are 
346
341
bugs.launchpad.net, bugs.debian.org, and bugzilla.gnome.org. These trackers
347
342
have their own identifiers: lp, deb, and gnome respectively. For example,
348
343
if you made a change to fix the bug #1234 on bugs.launchpad.net, you would
349
344
use the following command to commit your fix::
350
345
 
351
 
    % bzr commit -m "fixed my first bug" --fixes lp:1234
 
346
    % brz commit -m "fixed my first bug" --fixes lp:1234
352
347
 
353
348
For more information on this topic or for information on how to configure
354
349
other bug trackers please read `Bug Tracker Settings`_.
361
356
If you give file or directory names on the commit command line then only
362
357
the changes to those files will be committed.  For example::
363
358
 
364
 
    % bzr commit -m "documentation fix" commit.py
 
359
    % brz commit -m "documentation fix" commit.py
365
360
 
366
 
By default bzr always commits all changes to the tree, even if run from a
 
361
By default brz always commits all changes to the tree, even if run from a
367
362
subdirectory.  To commit from only the current directory down, use::
368
363
 
369
 
    % bzr commit .
 
364
    % brz commit .
370
365
 
371
366
 
372
367
Removing uncommitted changes
374
369
 
375
370
If you've made some changes and don't want to keep them, use the
376
371
**revert** command to go back to the previous head version.  It's a good
377
 
idea to use ``bzr diff`` first to see what will be removed. By default the
 
372
idea to use ``brz diff`` first to see what will be removed. By default the
378
373
revert command reverts the whole tree; if file or directory names are
379
 
given then only those ones will be affected. ``bzr revert`` also clears the
 
374
given then only those ones will be affected. ``brz revert`` also clears the
380
375
list of pending merges revisions.
381
376
 
382
377
 
389
384
Many source trees contain some files that do not need to be versioned,
390
385
such as editor backups, object or bytecode files, and built programs.  You
391
386
can simply not add them, but then they'll always crop up as unknown files.
392
 
You can also tell bzr to ignore these files by adding them to a file
 
387
You can also tell brz to ignore these files by adding them to a file
393
388
called ``.bzrignore`` at the top of the tree.
394
389
 
395
390
This file contains a list of file wildcards (or "globs"), one per line.
410
405
    doc/*.html
411
406
 
412
407
To get a list of which files are ignored and what pattern they matched,
413
 
use ``bzr ignored``::
 
408
use ``brz ignored``::
414
409
 
415
 
    % bzr ignored
 
410
    % brz ignored
416
411
    config.h                 ./config.h
417
412
    configure.in~            *~
418
413
 
424
419
The ``.bzrignore`` file should normally be versioned, so that new copies
425
420
of the branch see the same patterns::
426
421
 
427
 
    % bzr add .bzrignore
428
 
    % bzr commit -m "Add ignore patterns"
429
 
 
430
 
 
431
 
bzr ignore
 
422
    % brz add .bzrignore
 
423
    % brz commit -m "Add ignore patterns"
 
424
 
 
425
 
 
426
brz ignore
432
427
----------
433
428
 
434
429
As an alternative to editing the ``.bzrignore`` file, you can use the
435
 
``bzr ignore`` command. The ``bzr ignore`` command takes filenames and/or
 
430
``brz ignore`` command. The ``brz ignore`` command takes filenames and/or
436
431
patterns as arguments and then adds them to the ``.bzrignore`` file. If a
437
 
``.bzrignore`` file does not exist the ``bzr ignore`` command will
 
432
``.bzrignore`` file does not exist the ``brz ignore`` command will
438
433
automatically create one for you, and implicitly add it to be versioned::
439
434
 
440
 
    % bzr ignore tags
441
 
    % bzr status
 
435
    % brz ignore tags
 
436
    % brz status
442
437
    added:
443
438
      .bzrignore
444
439
 
445
440
Just like when editing the ``.bzrignore`` file on your own, you should
446
441
commit the automatically created ``.bzrignore`` file::
447
442
 
448
 
    % bzr commit -m "Added tags to ignore file"
 
443
    % brz commit -m "Added tags to ignore file"
449
444
 
450
445
 
451
446
Global ignores
453
448
 
454
449
There are some ignored files which are not project specific, but more user
455
450
specific. Things like editor temporary files, or personal temporary files.
456
 
Rather than add these ignores to every project, bzr supports a global
 
451
Rather than add these ignores to every project, brz supports a global
457
452
ignore file in ``~/.bazaar/ignore`` [1]_. It has the same syntax as the
458
453
per-project ignore file.
459
454
 
461
456
Examining history
462
457
=================
463
458
 
464
 
bzr log
 
459
brz log
465
460
-------
466
461
 
467
 
The ``bzr log`` command shows a list of previous revisions. The ``bzr log
 
462
The ``brz log`` command shows a list of previous revisions. The ``brz log
468
463
--forward`` command does the same in chronological order to get most
469
464
recent revisions printed at last.
470
465
 
471
 
As with ``bzr diff``, ``bzr log`` supports the ``-r`` argument::
 
466
As with ``brz diff``, ``brz log`` supports the ``-r`` argument::
472
467
 
473
 
    % bzr log -r 1000..          # Revision 1000 and everything after it
474
 
    % bzr log -r ..1000          # Everything up to and including r1000
475
 
    % bzr log -r 1000..1100      # changes from 1000 to 1100
476
 
    % bzr log -r 1000            # The changes in only revision 1000
 
468
    % brz log -r 1000..          # Revision 1000 and everything after it
 
469
    % brz log -r ..1000          # Everything up to and including r1000
 
470
    % brz log -r 1000..1100      # changes from 1000 to 1100
 
471
    % brz log -r 1000            # The changes in only revision 1000
477
472
 
478
473
 
479
474
Branch statistics
480
475
=================
481
476
 
482
 
The ``bzr info`` command shows some summary information about the working
 
477
The ``brz info`` command shows some summary information about the working
483
478
tree and the branch history.
484
479
 
485
480
 
486
481
Versioning directories
487
482
======================
488
483
 
489
 
bzr versions files and directories in a way that can keep track of renames
 
484
brz versions files and directories in a way that can keep track of renames
490
485
and intelligently merge them::
491
486
 
492
487
    % mkdir src
493
488
    % echo 'int main() {}' > src/simple.c
494
 
    % bzr add src
 
489
    % brz add src
495
490
    added src
496
491
    added src/simple.c
497
 
    % bzr status
 
492
    % brz status
498
493
    added:
499
494
      src/
500
495
      src/simple.c
507
502
directory.  This is a bit different to CVS, which requires that you also
508
503
do ``cvs remove``.
509
504
 
510
 
``bzr remove`` makes the file un-versioned, but may or may not delete the
 
505
``brz remove`` makes the file un-versioned, but may or may not delete the
511
506
working copy [2]_.  This is useful when you add the wrong file, or decide that
512
507
a file should actually not be versioned.
513
508
 
514
509
::
515
510
 
516
511
    % rm -r src
517
 
    % bzr remove -v hello.txt
 
512
    % brz remove -v hello.txt
518
513
    ?       hello.txt
519
 
    % bzr status
 
514
    % brz status
520
515
    removed:
521
516
      hello.txt
522
517
      src/
524
519
    unknown:
525
520
      hello.txt
526
521
 
527
 
If you remove the wrong file by accident, you can use ``bzr revert`` to
 
522
If you remove the wrong file by accident, you can use ``brz revert`` to
528
523
restore it.
529
524
 
530
525
 
536
531
the existing branch.  Because this new copy is potentially a new branch,
537
532
the command is called **branch**::
538
533
 
539
 
    % bzr branch lp:bzr bzr.dev
540
 
    % cd bzr.dev
 
534
    % brz branch lp:brz brz.dev
 
535
    % cd brz.dev
541
536
 
542
537
This copies down the complete history of this branch, so we can do all
543
538
operations on it locally: log, annotate, making and merging branches.
552
547
You can stay up-to-date with the parent branch by "pulling" in their
553
548
changes::
554
549
 
555
 
    % bzr pull
 
550
    % brz pull
556
551
 
557
552
After this change, the local directory will be a mirror of the source. This
558
553
includes the ''revision-history'' - which is a list of the commits done in
566
561
Merging from related branches
567
562
=============================
568
563
 
569
 
If two branches have diverged (both have unique changes) then ``bzr
 
564
If two branches have diverged (both have unique changes) then ``brz
570
565
merge`` is the appropriate command to use. Merge will automatically
571
566
calculate the changes that exist in the branch you're merging from that
572
567
are not in your branch and attempt to apply them in your branch.
573
568
 
574
569
::
575
570
 
576
 
  % bzr merge URL
 
571
  % brz merge URL
577
572
 
578
573
 
579
574
If there is a conflict during a merge, 3 files with the same basename
592
587
 
593
588
  % kdiff3 file.BASE file.OTHER file.THIS
594
589
  % mv file.THIS file
595
 
  % bzr resolve file
 
590
  % brz resolve file
596
591
 
597
592
[**TODO**: explain conflict markers within files]
598
593
 
600
595
Publishing your branch
601
596
======================
602
597
 
603
 
You don't need a special server to publish a bzr branch, just a normal web
 
598
You don't need a special server to publish a brz branch, just a normal web
604
599
server.  Just mirror the files to your server, including the .bzr
605
600
directory.  One can push a branch (or the changes for a branch) by one of
606
601
the following three methods:
607
602
 
608
 
* The best method is to use bzr itself to do it.
 
603
* The best method is to use brz itself to do it.
609
604
 
610
605
  ::
611
606
 
612
 
    % bzr push bzr+ssh://servername.com/path/to/directory
 
607
    % brz push brz+ssh://servername.com/path/to/directory
613
608
 
614
609
  (The destination directory must already exist unless the
615
610
  ``--create-prefix`` option is used.)
616
611
 
617
 
* Another option is the ``rspush`` plugin that comes with BzrTools, which
 
612
* Another option is the ``rspush`` plugin that comes with brzTools, which
618
613
  uses rsync to push the changes to the revision history and the working
619
614
  tree.
620
615
 
636
631
::
637
632
 
638
633
  % cd NEWDIR
639
 
  % bzr merge --uncommitted OLDDIR
 
634
  % brz merge --uncommitted OLDDIR
640
635
 
641
636
This will apply all of the uncommitted changes you made in OLDDIR to NEWDIR.
642
637
It will not apply committed changes, even if they could be applied to NEWDIR
643
 
with a regular merge.  The changes will remain in OLDDIR, but you can use ``bzr
 
638
with a regular merge.  The changes will remain in OLDDIR, but you can use ``brz
644
639
revert OLDDIR`` to remove them, once you're satisfied with NEWDIR.
645
640
 
646
641
NEWDIR does not have to be a copy of OLDDIR, but they should be related.