~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/tutorial.txt

  • Committer: Alexander Belchenko
  • Date: 2006-07-31 16:12:57 UTC
  • mto: (1711.2.111 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1906.
  • Revision ID: bialix@ukr.net-20060731161257-91a231523255332c
new official bzr.ico

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.