[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Feature Request: abilty to commit specific chunks of a file in arevision

From: Max Bowsher <maxb_at_ukf.net>
Date: 2005-10-20 18:06:24 CEST

Matt Brown wrote:
> Hi,
> I have an idea for what I think would be a very great and useful
> feature for the subversion client and wanted to get some feedback on
> it before I filed an issue on it. Maybe I'm loopy and this will never
> happen...
> The feature that I would like is the ability to isolate a chunk or
> chunks off the diff between a working copy and the repository and
> commit those chunks separately to other chunks in the file.
> Use Case:
> User A is adding a function frobnicate to foo.c, in the process of
> testing the new function a bug is discovered in a function called
> bar2frob which is also found in foo.c.
> The fix for the bar2frob function is general and not directly related
> to the addition of the frobnicate function. The user wishes to create
> two separate revisions from this single file so that merging and issue
> tracking is simplified.
> The obvious drawback of this proposal would be that it makes the
> commit process slightly more complex. However this could easily be
> managed by only presenting the option of which chunks to commit when
> svn commit is called with a specific argument. This would retain the
> current behaviour while presenting the extension to those users who
> require it.
> Does this sound like a sane feature request?

It does indeed, as I have on multiple occasions had to emulate this sort of
behaviour by copying aside my working file, then selectively undoing
changes, committing, then moving the copied-aside file back.

This is a difficult problem, both in UI and backend design. It needs a way
to easily define ranges of change to commit, and a way to effectively store
these changes, since they may be required to persist for the duration of
several edit-compile-test cycles, whilst displaying the correct information
in svn diff and then committing the correct parts in svn commit.


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 20 18:07:40 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.