Move changesets to a different branch
Release BL793 (short of 5.4.16.793 – BL means baseline) brought a great new feature: moving changesets to a different branch! This way we close the Top-1 User Voice request from our users.
Do you know when you are working on something, you checkin, and then you realized you made the checkout on the wrong branch? Like directly on “main” instead of your task branch? Painful, uh?
Well, now the pain is gone, watch how simple it is to solve the issue:
Available on OS X, Linux and Windows, and also from the command line using the refurbished “cm changeset” command.
Enjoy!
nice feature!
ReplyDeletepity that if you have xlinks, the next commit you make goes to the branch you moved from
and then when you try to merge you have "pending xlinks" which you cant merge (unless you merge them to a helper branch and then cherrypick)
Hi!
Deletefor the proposed scenario you will be able to succeed if you do the following:
(being the global repository the one having the xlink)
1)Using the global repository, move the changeset to the new or empty child branch.
2)Using the xlinked repository, move the changeset to a new child branch with the same name you used at the global repo (not mandatory to use the same name but it's cleaner=
3)Using the global repository, switch your workspace to the child branch and edit the xlink rules, set the source branch to /main/ChildBranchName and the destination branch to the xlinked repository branch name: /main/ChildBranchName. Check the change in.
4) Continue working using the global repo and the child branch, once you finish your work you will be able to merge from the branch without any problems.
Hope it helps!