@@ -42,11 +42,16 @@ a fork <forking>` of the repo you are migrating to.
4242
4343 Resolve any conflicts and then commit these changes to this branch,
4444 ``fcm ci ``.
45- #. Create a patch file from your new branch at the migration point,
45+ #. Create a patch file from your new branch at the migration point. To do this
46+ you will need to know the branch point of your fcm branch, which can be found
47+ from the ``fcm binfo `` command
4648
4749 .. code-block ::
4850
49- fcm bdiff >> /path/to/branch_diff.patch
51+ fcm diff --git --force --diff-cmd /usr/bin/diff -x "-au" \
52+ fcm:REPO.x_tr@BRANCH_REVISION \
53+ fcm:REPO.x_br/dev/USER/BRANCH_NAME > \
54+ /path/to/branch_diff.patch
5055
5156 #. Move into your git clone and :ref: `create a new branch <create_branch >` with
5257 the same start point as your fcm branch. If you are branching from an
@@ -62,21 +67,13 @@ a fork <forking>` of the repo you are migrating to.
6267
6368 .. code-block ::
6469
65- git apply --reject /path/to/branch_diff.patch
66-
67- .. note ::
68-
69- The paths in the patch file will be as short as possible to show all files
70- changed, so you may need to change directory. eg. if you branch only
71- contains changes in the ``rose-stem `` directory, then you will need to move
72- into the ``rose-stem `` directory to successfully apply the patch.
70+ patch -p0 -s < /path/to/branch_diff.patch
7371
7472 #. If your fcm and git branches are from an equivalent branch point, there
75- shouldn't be any conflicts applying the patch file. If there are conflicts
76- then these will be recorded in ``*.rej `` files. The output of the ``apply ``
77- command will note any failures, or you can find them by running
78- ``find . -name *.rej ``. Fix any failures you find and then commit the
79- changes.
73+ shouldn't be any conflicts applying the patch file. Check carefully the
74+ output of the patch application, ``git status ``. If you have new files on
75+ your branch these will need adding via ``git add ``. Deleted files will also
76+ need deleting via ``git rm ``.
8077#. Finally, all branches will **need ** to update to the initial git release in
8178 order to run the test suites. This can be done by merging the ``stable ``
8279 branch into your new branch. See :ref: `updating a branch <updating_branch >`
0 commit comments