~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/tutorial.txt

  • Committer: Aaron Bentley
  • Date: 2006-08-16 13:54:49 UTC
  • mto: This revision was merged to the branch mainline in revision 1930.
  • Revision ID: abentley@panoramicfeedback.com-20060816135449-7e54c450c841ba44
Update NEWS and tutorial to describe merge --uncommitted

Show diffs side-by-side

added added

removed removed

Lines of Context:
528
528
 
529
529
* The rspush plugin that comes with BzrTools
530
530
 
 
531
 
 
532
Moving changes between trees 
 
533
============================
 
534
 
 
535
It happens to the best of us: sometimes you'll make changes in the wrong
 
536
tree.  Maybe because you've accidentally started work in the wrong directory,
 
537
maybe because as you're working, the change turns out to be bigger than you
 
538
expected, so you start a new branch for it.
 
539
 
 
540
To move your changes from one tree to another, use
 
541
 
 
542
::
 
543
 
 
544
  % cd NEWDIR
 
545
  % bzr merge --uncommitted OLDDIR
 
546
 
 
547
This will apply all of the uncommitted changes you made in OLDDIR to NEWDIR.
 
548
It will not apply committed changes, even if they could be applied to NEWDIR
 
549
with a regular merge.  The changes will remain in OLDDIR, but you can use **bzr
 
550
revert OLDDIR** to remove them, once you're satisfied with NEWDIR.
 
551
 
 
552
NEWDIR does not have to be a copy of OLDDIR, but they should be related.
 
553
The more different they are, the greater the chance of conflicts.