Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
872 views
in Technique[技术] by (71.8m points)

svn switch - SVN how to change branch keeping working copy untoucthed?

I have a branch with many changes. I've merged trunk to it, and now have working copy state equivalent to hypothetical state of trunk-with-my-branch-merged-to-it.

To avoid pain with namely merging branch to trunk, I want to just say: "Hey, SVN, lets consider my working copy is working copy of trunk from now (not of my branch)."

I expect that working copy will be kept untouched & SVN shows me total diff of it to trunk, suggesting me to commit all those changes.

(It's like flattened all branch history to a single commit) - this flattenning is not the purpose (and, moreover, is unwanted) but it's reasonable price for avoiding of merging pain.

How can I do it?

I've red some similar posts here (even titled very similar), but didn't find an answer.

There are 2 tools, but it looks like none is appropriate to my need:

question from:https://stackoverflow.com/questions/65917483/svn-how-to-change-branch-keeping-working-copy-untoucthed

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...