[Laszlo-dev] applying a changeset
Benjamin Shine
ben at laszlosystems.com
Thu Nov 30 09:44:34 PST 2006
There are two ways to apply a changeset.
Mechanism #1 is reliable but may destroy local changes, if there are
changes to the same file. Explode the tar, uncompress files.tar,
figure out where in the source tree files.tar is rooted, then copy
the files in files.tar into your lps tree. HOWEVER this will
overwrite locally-modified files; do NOT do it if you have local
changes in the files this changeset changes. This mechanism will not
delete files that the changeset schedules for deletion; this is a bug.
Mechanism #2 is a little bit more fiddly but won't destroy local
changes. It won't properly add, delete, or move files added, deleted
or moved by the changeset; only patch them. Explode the tar, then
figure out where the changeset is rooted from. In your lps tree, cd
to the corresponding source directory. Then call /path/to/changeset/
apply.sh. It will attempt to modify the local files with the patches.
It will complain noisily if it has trouble applying the patches.
I recommend #1, but only ever do it to a working copy which does not
have any local changes that you care about, so you do not risk
overwriting your own changes.
-ben
Benjamin Shine
Software Engineer, Open Laszlo / Laszlo Systems
ben at laszlosystems.com
More information about the Laszlo-dev
mailing list