[p4] Moving a changelist across to a new branch?

Peter Weldon peter.weldon at lollotec.com
Wed Apr 30 10:22:40 PDT 2008


This has worked for me in the past, YMMV:
p4 integrate -v //from_branch/...#have //new_branch/...
p4 sync -k //new_branch/...
copy from_branch/* new_branch/*
reconcile offline work in //new_branch/... (p4 diff -se
//new_branch/... | p4 -x - edit & ... etc. etc. or P4V workspace pane
"Tools > Reconcile Offline Work ..." menu or P4Win "File > More >
Check Consistency")


On Wed, Apr 30, 2008 at 4:37 AM, Troughton, Robert
<rtroughton at midway.com> wrote:
> Imagine a situation where a programmer has been working on a change
>  that's turned out to be much bigger than he'd first expected... his
>  changelist expands to, say, 100 changes, a mixture of adds, deletes and
>  edits, and it looks like the changelist will get bigger still before
>  he's finally able to check it in.
>
>  So... after two weeks of work, he decides that he should've created a
>  branch for his changed.
>
>  Basically... how easy would it be to create that branch from the current
>  "head" version on Perforce and to pull his changelist across to that
>  branch instead?
>
>  Sorry if I've explained this badly ... I hope the question makes some
>  sense?
>
>  Robert
>
>  _______________________________________________
>  perforce-user mailing list  -  perforce-user at perforce.com
>  http://maillist.perforce.com/mailman/listinfo/perforce-user
>


More information about the perforce-user mailing list