isn't the only way to catch-up with a development path.
Another option is
% cd ~/wd/project-tree % tla replay [....]
What does that actually do?
Let's suppose that we check out an old version of
% cd ~/wd % tla get hello-world--mainline--0.1--patch-1 hw-patch-1 [...]
It's easy to see that the resulting tree is not up-to-date:
% cd hw-patch-1 % tla missing patch-2 patch-3
Now, let's suppose that we make some local changes in
. What happens?
Local changes are computed against patch-1. In other words,
a changeset is created that represents the changes from a
pristine copy of the
revision to the current state
of the project tree (
A copy of patch-3 is checked out.
starts with a pristine
copy of the
The changeset is applied to the patch-3 tree. The changes computed in the first step are made to the new tree.
There's another way, though:
We have a local copy of the
, perhaps with some local
% cd ~/wd/hw-patch-1 % tla missing patch-2 patch-3
Recall that the
revisions each correspond to a
specific changeset, stored in the archive (see How it Works -- commit of a New Revision).
We could add those changes to your local tree by using
to retrieve each changeset, and
to apply it (see
get-changeset Retrieves a Changeset from an Archive, and
dopatch). That's a lot of tedious work, though, so
provides a more automated way to accomplish that same effect:
% cd ~/wd/hw-patch-1 % tla replay [....] % tla missing [no output]
will do just what we've described: get patches
from the archive and apply them one-by-one. One word of caution,
though: if one of those patches generates conflicts,
stop there and let you fix the conflicts. You can then pick up where
left off by running
a second time.
If you've followed along with the tutorial so far, the way that
works should be pretty obvious. In fact, it's just exactly how we
described it above.
to find out what changes
your tree is missing,
to retrieve those changesets, and
to apply them. There's a fair amount of "bookkeeping"
involved in doing that -- and that bookkeeping is what
automates for you.