开发者

What do you do if a feature is dropped at the last moment? [closed]

开发者 https://www.devze.com 2022-12-19 17:01 出处:网络
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing
Closed. This question is opinion-based. It is not currently accepting answers.

Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.

开发者_运维知识库

Closed 3 years ago.

Improve this question

Let's say you work on a large project with multiple features targeted in each release. We may have different feature branches (in the VCS) for each feature development. But after all the feature branch is merged and integration is done say one of the feature is dropped (this happens more frequently in our organization than you would imagine). Is there a way to rollback a feature at this point? What we usually do is to figure out all the code changes and manually roll back. Do you have any processes/best practices that will help reduce this effort? For the record, we have a java project with subversion as the VCS.


It depends why you dropped the feature.

If "at the last moment" is during system testing, and you don't want to repeat it, then I'd say that you just disable the feature and ship it anyway.

We have done this in the past; removing the feature can be too risky in terms of creating additional bugs. If you don't want the feature any more (for example, the requirement has gone away, or the implementation has been decided to be incorrect), then it is probably better in terms of risk to just switch it off with minimum code changes.

I mean, remove or hide UI elements which enable the feature, then users won't know it's there (provided it's turned off by default).

Hopefully during a future release there will be an opportunity to refactor that part of the code and either remove the feature or reintroduce it properly.


If you're using TortoiseSVN as a client, it has a "roll back changes from this revision" right in the context menu.

Simply show the log on the working copy, and choose the revision that you wish to reverse-merge (in the case, the revision that represents where you merged in the feature branch).

alt text http://img64.imageshack.us/img64/9053/svnreversemerge.png

Otherwise, you can do a reverse merge from the command line. Reverse merging creates a new revision that is the HEAD revision minus the changes from the revision that you reverse-merged, so you can always "reverse reverse" merge. SVN is great that way.

0

精彩评论

暂无评论...
验证码 换一张
取 消