Only one file per changeset
Accepted answer
Having a feature that only touches 5 files is lucky in my opinion :)
Often a feature may touch hundreds of files (which would be hundreds of change sets).
Always having one change set per file could have a negative impact on the overall performance of RTC (especially for users that have low bandwidth / high latency when connecting to the jazz.net server) and possibility even the usability (having to deal with this many change sets in the UI...)
-Views that show the change sets would have to 'fetch' a lot more items (IChangeSets) this way. Which puts more load on the server.
-Work items would now have tens/hundreds of change sets associated with them.
-The Locate Change Sets feature (which is 'work item-centric') will take longer to compute whether or not all those work item (i.e hundreds of change sets) are contained in the history of other streams/workspaces/snapshots, etc
-Change Summary, Change Explorer, and the History view of a component will all take longer to fetch all the change sets (since there are more) (or at least this would create more 'pages' to go through for some of the views).
-The performance in the Pending Changes view would suffer, as it has to compare a workspace it's flow target, and this approach would in general mean there are a LOT more incoming / outgoing change sets.
-The benefit of adding a meaningful comment to a change set is lost. Ex: "refactored the Engine class and its callers"), "added JavaDoc to several new classes for the new feature", "added several JUnits for the new feature". I mean you still could, but there would be a lot of duplicated change set comments. This also would impact Code Reviews.
-There is no built-in way to have this enforced in RTC. Note: you cannot have more than one active change set at a time which contains a given file. Thus users will have to remember to complete or deliver the change set, or when checking-in, always find and pick the one active change set which contains the file (and from my understanding, at any given time there may be MANY active change sets (one per file) so this would be tedious.
Comments
showing 5 of 6
show 1 more comments
One other answer
Hi Ricardo,
Change set is collection of related modification to files for specific requirements.
Yes, you can use it but I don't think we have any build in feature to prevent it.
Note: you need to check-in and deliver each change set every time with common files changes.
eg: can't create two change sets for same file a.java file two times (cs1 and cs2) , without delivering it.
Regards,
Arun.
Change set is collection of related modification to files for specific requirements.
Yes, you can use it but I don't think we have any build in feature to prevent it.
Note: you need to check-in and deliver each change set every time with common files changes.
eg: can't create two change sets for same file a.java file two times (cs1 and cs2) , without delivering it.
Regards,
Arun.