You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Philip Martin <ph...@wandisco.com> on 2013/04/17 12:43:28 UTC
Re: Changelist support for svn patch?
[dev CC'd]
Nick <no...@codesniffer.com> writes:
> The 'patch' subcommand does not seem to support applying a changelist
> description to the files that are part of the patch. Any plans to
> support this?
>
> (Should I be asking this on the dev list?)
That sounds like a useful feauture. The list of files affected by patch
is not always readily available to pass to the changelist command.
Would this behaviour be useful for other commands?
--
Certified & Supported Apache Subversion Downloads:
http://www.wandisco.com/subversion/download
Re: Changelist support for svn patch?
Posted by Nick <no...@codesniffer.com>.
On Thu, 2013-04-18 at 07:18 -0700, BRM wrote:
> So what if you have changes to the local working copy?
> Or are you ensuring you have no other changes first?
Right, I'd ensure the files being modified in the patch have no changes
in my WC first.
>
> As Branko Čibej noted, the only clean way to do it is to use a new (or
> a dedicated) working copy.
>
> Sadly, there is nothing like TSVN for Linux.
If I get around to creating a script to help w/ this workflow, I'll
share it.
>
> Ben
>
>
>
>
> ______________________________________________________________
> From: Nick <no...@codesniffer.com>
> To: BRM <bm...@yahoo.com>
> Cc: users <us...@subversion.apache.org>;
> "dev@subversion.apache.org" <de...@subversion.apache.org>
> Sent: Wednesday, April 17, 2013 4:12 PM
> Subject: Re: Changelist support for svn patch?
>
>
>
> On Wed, 2013-04-17 at 11:42 -0700, BRM wrote:
> > I'd suggest a slight modification to your process if you can
> - that
> > is:
> >
> > 1. Checkout a new working copy
> > 2. Apply the patch to the new working copy
> > 3. Review
> > 4. Delete the new working copy
> >
> > Now I realize in some cases that may not be an option - too
> large a
> > down, etc.
> Right, checking out a new WC for each code review is not
> feasible for
> me, and sort of seems like overkill. I figure the worst case
> scenario
> is to generate a script which parses the patch and downloads a
> local
> copy of each file referenced in the patch (at the specified
> rev) into a
> temporary tree (sort of a sparse checkout), apply the patch to
> the tree,
> and then can launch a diff tool against it.
>
> > If the patch provider is using SVN, which I assume they are
> since
> > you're talking about apply a patch with SVN, then if it is
> all
> > committed you could also use TSVN's Repository Viewer to
> look at the
> > patch by comparing two branches, and then using TSVN's Diff
> > functionality to look at each modification, just like you
> are in your
> > working copy - only you don't need a working copy to do it.
>
> I'm using Linux, otherwise I'd just use TortoiseSVN which
> seems to be
> able to do what I describe above.
>
> >
> > Any how...something to think about for you.
> >
> > Ben
> >
> > P.S. Aren't "Changelists" client-side only?
>
> Yes, they are client-side only.
>
>
> >
> >
> ______________________________________________________________
> > From: Nick <no...@codesniffer.com>
> > To: Philip Martin <ph...@wandisco.com>
> > Cc: users <us...@subversion.apache.org>;
> > dev@subversion.apache.org
> > Sent: Wednesday, April 17, 2013 10:23 AM
> > Subject: Re: Changelist support for svn patch?
> >
> >
> > On Wed, 2013-04-17 at 11:43 +0100, Philip Martin
> wrote:
> > > > The 'patch' subcommand does not seem to support
> applying a
> > > changelist
> > > > description to the files that are part of the
> patch. Any
> > plans to
> > > > support this?
> > > >
> > > > (Should I be asking this on the dev list?)
> > >
> > > That sounds like a useful feauture.
> >
> > Here's the workflow which provoked my asking. I
> wonder if
> > there's an
> > alternative (and maybe more streamlined) method of
> > accomplishing the
> > same.
> >
> > I received a patch containing a feature addition for
> a project
> > I'm
> > working on. My primary interest is only to view the
> changes
> > (ie. code
> > review)--not to submit them. AFAICT, the way to do
> this using
> > subversion directly (ie. not a wrapper app like
> TortoiseSVN)
> > is to apply
> > the patch to my working copy and then view the diff.
> (I'm
> > ignoring the
> > option of viewing the raw patch file directly in an
> editor.)
> > Once I'm
> > done reviewing, I want to remove the change. Without
> the
> > ability to
> > apply the patch into a specific changelist, I have to
> > surgically revert
> > the changes if I have other changes of my own in the
> WC. If
> > the patch
> > were applied to a changelist, I can revert it all in
> one shot.
> >
> > Am I missing something for this workflow? Is there a
> simpler
> > way? How
> > do others handle this scenario?
> >
> >
> > Nick
> >
> >
> >
> >
> >
>
>
>
>
Re: Changelist support for svn patch?
Posted by BRM <bm...@yahoo.com>.
So what if you have changes to the local working copy?
Or are you ensuring you have no other changes first?
As Branko Čibej noted, the only clean way to do it is to use a new (or a dedicated) working copy.
Sadly, there is nothing like TSVN for Linux.
Ben
>________________________________
> From: Nick <no...@codesniffer.com>
>To: BRM <bm...@yahoo.com>
>Cc: users <us...@subversion.apache.org>; "dev@subversion.apache.org" <de...@subversion.apache.org>
>Sent: Wednesday, April 17, 2013 4:12 PM
>Subject: Re: Changelist support for svn patch?
>
>
>
>On Wed, 2013-04-17 at 11:42 -0700, BRM wrote:
>> I'd suggest a slight modification to your process if you can - that
>> is:
>>
>> 1. Checkout a new working copy
>> 2. Apply the patch to the new working copy
>> 3. Review
>> 4. Delete the new working copy
>>
>> Now I realize in some cases that may not be an option - too large a
>> down, etc.
>Right, checking out a new WC for each code review is not feasible for
>me, and sort of seems like overkill. I figure the worst case scenario
>is to generate a script which parses the patch and downloads a local
>copy of each file referenced in the patch (at the specified rev) into a
>temporary tree (sort of a sparse checkout), apply the patch to the tree,
>and then can launch a diff tool against it.
>
>> If the patch provider is using SVN, which I assume they are since
>> you're talking about apply a patch with SVN, then if it is all
>> committed you could also use TSVN's Repository Viewer to look at the
>> patch by comparing two branches, and then using TSVN's Diff
>> functionality to look at each modification, just like you are in your
>> working copy - only you don't need a working copy to do it.
>
>I'm using Linux, otherwise I'd just use TortoiseSVN which seems to be
>able to do what I describe above.
>
>>
>> Any how...something to think about for you.
>>
>> Ben
>>
>> P.S. Aren't "Changelists" client-side only?
>
>Yes, they are client-side only.
>
>
>>
>> ______________________________________________________________
>> From: Nick <no...@codesniffer.com>
>> To: Philip Martin <ph...@wandisco.com>
>> Cc: users <us...@subversion.apache.org>;
>> dev@subversion.apache.org
>> Sent: Wednesday, April 17, 2013 10:23 AM
>> Subject: Re: Changelist support for svn patch?
>>
>>
>> On Wed, 2013-04-17 at 11:43 +0100, Philip Martin wrote:
>> > > The 'patch' subcommand does not seem to support applying a
>> > changelist
>> > > description to the files that are part of the patch. Any
>> plans to
>> > > support this?
>> > >
>> > > (Should I be asking this on the dev list?)
>> >
>> > That sounds like a useful feauture.
>>
>> Here's the workflow which provoked my asking. I wonder if
>> there's an
>> alternative (and maybe more streamlined) method of
>> accomplishing the
>> same.
>>
>> I received a patch containing a feature addition for a project
>> I'm
>> working on. My primary interest is only to view the changes
>> (ie. code
>> review)--not to submit them. AFAICT, the way to do this using
>> subversion directly (ie. not a wrapper app like TortoiseSVN)
>> is to apply
>> the patch to my working copy and then view the diff. (I'm
>> ignoring the
>> option of viewing the raw patch file directly in an editor.)
>> Once I'm
>> done reviewing, I want to remove the change. Without the
>> ability to
>> apply the patch into a specific changelist, I have to
>> surgically revert
>> the changes if I have other changes of my own in the WC. If
>> the patch
>> were applied to a changelist, I can revert it all in one shot.
>>
>> Am I missing something for this workflow? Is there a simpler
>> way? How
>> do others handle this scenario?
>>
>>
>> Nick
>>
>>
>>
>>
>>
>
>
>
>
Re: Changelist support for svn patch?
Posted by BRM <bm...@yahoo.com>.
So what if you have changes to the local working copy?
Or are you ensuring you have no other changes first?
As Branko Čibej noted, the only clean way to do it is to use a new (or a dedicated) working copy.
Sadly, there is nothing like TSVN for Linux.
Ben
>________________________________
> From: Nick <no...@codesniffer.com>
>To: BRM <bm...@yahoo.com>
>Cc: users <us...@subversion.apache.org>; "dev@subversion.apache.org" <de...@subversion.apache.org>
>Sent: Wednesday, April 17, 2013 4:12 PM
>Subject: Re: Changelist support for svn patch?
>
>
>
>On Wed, 2013-04-17 at 11:42 -0700, BRM wrote:
>> I'd suggest a slight modification to your process if you can - that
>> is:
>>
>> 1. Checkout a new working copy
>> 2. Apply the patch to the new working copy
>> 3. Review
>> 4. Delete the new working copy
>>
>> Now I realize in some cases that may not be an option - too large a
>> down, etc.
>Right, checking out a new WC for each code review is not feasible for
>me, and sort of seems like overkill. I figure the worst case scenario
>is to generate a script which parses the patch and downloads a local
>copy of each file referenced in the patch (at the specified rev) into a
>temporary tree (sort of a sparse checkout), apply the patch to the tree,
>and then can launch a diff tool against it.
>
>> If the patch provider is using SVN, which I assume they are since
>> you're talking about apply a patch with SVN, then if it is all
>> committed you could also use TSVN's Repository Viewer to look at the
>> patch by comparing two branches, and then using TSVN's Diff
>> functionality to look at each modification, just like you are in your
>> working copy - only you don't need a working copy to do it.
>
>I'm using Linux, otherwise I'd just use TortoiseSVN which seems to be
>able to do what I describe above.
>
>>
>> Any how...something to think about for you.
>>
>> Ben
>>
>> P.S. Aren't "Changelists" client-side only?
>
>Yes, they are client-side only.
>
>
>>
>> ______________________________________________________________
>> From: Nick <no...@codesniffer.com>
>> To: Philip Martin <ph...@wandisco.com>
>> Cc: users <us...@subversion.apache.org>;
>> dev@subversion.apache.org
>> Sent: Wednesday, April 17, 2013 10:23 AM
>> Subject: Re: Changelist support for svn patch?
>>
>>
>> On Wed, 2013-04-17 at 11:43 +0100, Philip Martin wrote:
>> > > The 'patch' subcommand does not seem to support applying a
>> > changelist
>> > > description to the files that are part of the patch. Any
>> plans to
>> > > support this?
>> > >
>> > > (Should I be asking this on the dev list?)
>> >
>> > That sounds like a useful feauture.
>>
>> Here's the workflow which provoked my asking. I wonder if
>> there's an
>> alternative (and maybe more streamlined) method of
>> accomplishing the
>> same.
>>
>> I received a patch containing a feature addition for a project
>> I'm
>> working on. My primary interest is only to view the changes
>> (ie. code
>> review)--not to submit them. AFAICT, the way to do this using
>> subversion directly (ie. not a wrapper app like TortoiseSVN)
>> is to apply
>> the patch to my working copy and then view the diff. (I'm
>> ignoring the
>> option of viewing the raw patch file directly in an editor.)
>> Once I'm
>> done reviewing, I want to remove the change. Without the
>> ability to
>> apply the patch into a specific changelist, I have to
>> surgically revert
>> the changes if I have other changes of my own in the WC. If
>> the patch
>> were applied to a changelist, I can revert it all in one shot.
>>
>> Am I missing something for this workflow? Is there a simpler
>> way? How
>> do others handle this scenario?
>>
>>
>> Nick
>>
>>
>>
>>
>>
>
>
>
>
Re: Changelist support for svn patch?
Posted by Nick <no...@codesniffer.com>.
On Wed, 2013-04-17 at 11:42 -0700, BRM wrote:
> I'd suggest a slight modification to your process if you can - that
> is:
>
> 1. Checkout a new working copy
> 2. Apply the patch to the new working copy
> 3. Review
> 4. Delete the new working copy
>
> Now I realize in some cases that may not be an option - too large a
> down, etc.
Right, checking out a new WC for each code review is not feasible for
me, and sort of seems like overkill. I figure the worst case scenario
is to generate a script which parses the patch and downloads a local
copy of each file referenced in the patch (at the specified rev) into a
temporary tree (sort of a sparse checkout), apply the patch to the tree,
and then can launch a diff tool against it.
> If the patch provider is using SVN, which I assume they are since
> you're talking about apply a patch with SVN, then if it is all
> committed you could also use TSVN's Repository Viewer to look at the
> patch by comparing two branches, and then using TSVN's Diff
> functionality to look at each modification, just like you are in your
> working copy - only you don't need a working copy to do it.
I'm using Linux, otherwise I'd just use TortoiseSVN which seems to be
able to do what I describe above.
>
> Any how...something to think about for you.
>
> Ben
>
> P.S. Aren't "Changelists" client-side only?
Yes, they are client-side only.
>
> ______________________________________________________________
> From: Nick <no...@codesniffer.com>
> To: Philip Martin <ph...@wandisco.com>
> Cc: users <us...@subversion.apache.org>;
> dev@subversion.apache.org
> Sent: Wednesday, April 17, 2013 10:23 AM
> Subject: Re: Changelist support for svn patch?
>
>
> On Wed, 2013-04-17 at 11:43 +0100, Philip Martin wrote:
> > > The 'patch' subcommand does not seem to support applying a
> > changelist
> > > description to the files that are part of the patch. Any
> plans to
> > > support this?
> > >
> > > (Should I be asking this on the dev list?)
> >
> > That sounds like a useful feauture.
>
> Here's the workflow which provoked my asking. I wonder if
> there's an
> alternative (and maybe more streamlined) method of
> accomplishing the
> same.
>
> I received a patch containing a feature addition for a project
> I'm
> working on. My primary interest is only to view the changes
> (ie. code
> review)--not to submit them. AFAICT, the way to do this using
> subversion directly (ie. not a wrapper app like TortoiseSVN)
> is to apply
> the patch to my working copy and then view the diff. (I'm
> ignoring the
> option of viewing the raw patch file directly in an editor.)
> Once I'm
> done reviewing, I want to remove the change. Without the
> ability to
> apply the patch into a specific changelist, I have to
> surgically revert
> the changes if I have other changes of my own in the WC. If
> the patch
> were applied to a changelist, I can revert it all in one shot.
>
> Am I missing something for this workflow? Is there a simpler
> way? How
> do others handle this scenario?
>
>
> Nick
>
>
>
>
>
Re: Changelist support for svn patch?
Posted by BRM <bm...@yahoo.com>.
I'd suggest a slight modification to your process if you can - that is:
1. Checkout a new working copy
2. Apply the patch to the new working copy
3. Review
4. Delete the new working copy
Now I realize in some cases that may not be an option - too large a down, etc.
If the patch provider is using SVN, which I assume they are since you're talking about apply a patch with SVN, then if it is all committed you could also use TSVN's Repository Viewer to look at the patch by comparing two branches, and then using TSVN's Diff functionality to look at each modification, just like you are in your working copy - only you don't need a working copy to do it.
Any how...something to think about for you.
Ben
P.S. Aren't "Changelists" client-side only?
>________________________________
> From: Nick <no...@codesniffer.com>
>To: Philip Martin <ph...@wandisco.com>
>Cc: users <us...@subversion.apache.org>; dev@subversion.apache.org
>Sent: Wednesday, April 17, 2013 10:23 AM
>Subject: Re: Changelist support for svn patch?
>
>
>On Wed, 2013-04-17 at 11:43 +0100, Philip Martin wrote:
>> > The 'patch' subcommand does not seem to support applying a
>> changelist
>> > description to the files that are part of the patch. Any plans to
>> > support this?
>> >
>> > (Should I be asking this on the dev list?)
>>
>> That sounds like a useful feauture.
>
>Here's the workflow which provoked my asking. I wonder if there's an
>alternative (and maybe more streamlined) method of accomplishing the
>same.
>
>I received a patch containing a feature addition for a project I'm
>working on. My primary interest is only to view the changes (ie. code
>review)--not to submit them. AFAICT, the way to do this using
>subversion directly (ie. not a wrapper app like TortoiseSVN) is to apply
>the patch to my working copy and then view the diff. (I'm ignoring the
>option of viewing the raw patch file directly in an editor.) Once I'm
>done reviewing, I want to remove the change. Without the ability to
>apply the patch into a specific changelist, I have to surgically revert
>the changes if I have other changes of my own in the WC. If the patch
>were applied to a changelist, I can revert it all in one shot.
>
>Am I missing something for this workflow? Is there a simpler way? How
>do others handle this scenario?
>
>
>Nick
>
>
>
>
>
Re: Changelist support for svn patch?
Posted by Branko Čibej <br...@wandisco.com>.
On 17.04.2013 16:23, Nick wrote:
> Am I missing something for this workflow? Is there a simpler way?
Apart from using a new working copy for each review, there is currently
no simpler way.
We're in the very, very early stages of designing a new feature
(tentatively named "checkpoints") that would allow you to roll back your
working copy to a previous state without reverting all changes; but it's
far too early to make any kind of prediction as to when, or if, this
feature will be available.
-- Brane
--
Branko Čibej
Director of Subversion | WANdisco | www.wandisco.com
Re: Changelist support for svn patch?
Posted by Nick <no...@codesniffer.com>.
On Wed, 2013-04-17 at 11:43 +0100, Philip Martin wrote:
> > The 'patch' subcommand does not seem to support applying a
> changelist
> > description to the files that are part of the patch. Any plans to
> > support this?
> >
> > (Should I be asking this on the dev list?)
>
> That sounds like a useful feauture.
Here's the workflow which provoked my asking. I wonder if there's an
alternative (and maybe more streamlined) method of accomplishing the
same.
I received a patch containing a feature addition for a project I'm
working on. My primary interest is only to view the changes (ie. code
review)--not to submit them. AFAICT, the way to do this using
subversion directly (ie. not a wrapper app like TortoiseSVN) is to apply
the patch to my working copy and then view the diff. (I'm ignoring the
option of viewing the raw patch file directly in an editor.) Once I'm
done reviewing, I want to remove the change. Without the ability to
apply the patch into a specific changelist, I have to surgically revert
the changes if I have other changes of my own in the WC. If the patch
were applied to a changelist, I can revert it all in one shot.
Am I missing something for this workflow? Is there a simpler way? How
do others handle this scenario?
Nick
Re: Changelist support for svn patch?
Posted by Philip Martin <ph...@wandisco.com>.
Philip Martin <ph...@wandisco.com> writes:
> "C. Michael Pilato" <cm...@collab.net> writes:
>
>> 'svn merge' comes to mind as one that, like patch, does not always have
>> explicitly named targets.
>
> Yes, merge is another candidate for this behaviour.
I think it's a reasonable suggestion for patch/merge at least, so I've
raised:
http://subversion.tigris.org/issues/show_bug.cgi?id=4354
--
Certified & Supported Apache Subversion Downloads:
http://www.wandisco.com/subversion/download
Re: Changelist support for svn patch?
Posted by "C. Michael Pilato" <cm...@collab.net>.
On 04/17/2013 11:32 AM, Philip Martin wrote:
> "C. Michael Pilato" <cm...@collab.net> writes:
>
>> On 04/17/2013 09:43 AM, Philip Martin wrote:
>>> The behaviour looks simple to define for 'patch' and 'merge', I was
>>> thinking about 'svn add --force' which marks all the unversioned files
>>> for addition.
>>
>> You mean, perhaps, 'svn add --force -R' (or some other non-empty depth).
>
> Add is recursive by default.
Doh. You're right, of course.
>> But that marks files *and* directories for addition.
>> directories to changelists today. :-(
>
> I imagine a new add-to-changelist option for commands would skip
> directories much like 'svn changelist'. But even if we do that it's not
> clear (to me anyway) which files should be added by 'svn add --force'.
Let's examine the feasible options:
1. Mark all files under the explicit 'svn add' target with changelist.
Meh... 'svn changelist -R' would do the same.
2. Mark only files added to version control by this command. To do this
with a subsequent 'svn changelist' command would require a bit of scripting
magic, so this seems like an interpretation that actually provides benefit.
--
C. Michael Pilato <cm...@collab.net>
CollabNet <> www.collab.net <> Enterprise Cloud Development
Re: Changelist support for svn patch?
Posted by "C. Michael Pilato" <cm...@collab.net>.
On 04/17/2013 11:32 AM, Philip Martin wrote:
> "C. Michael Pilato" <cm...@collab.net> writes:
>
>> On 04/17/2013 09:43 AM, Philip Martin wrote:
>>> The behaviour looks simple to define for 'patch' and 'merge', I was
>>> thinking about 'svn add --force' which marks all the unversioned files
>>> for addition.
>>
>> You mean, perhaps, 'svn add --force -R' (or some other non-empty depth).
>
> Add is recursive by default.
Doh. You're right, of course.
>> But that marks files *and* directories for addition.
>> directories to changelists today. :-(
>
> I imagine a new add-to-changelist option for commands would skip
> directories much like 'svn changelist'. But even if we do that it's not
> clear (to me anyway) which files should be added by 'svn add --force'.
Let's examine the feasible options:
1. Mark all files under the explicit 'svn add' target with changelist.
Meh... 'svn changelist -R' would do the same.
2. Mark only files added to version control by this command. To do this
with a subsequent 'svn changelist' command would require a bit of scripting
magic, so this seems like an interpretation that actually provides benefit.
--
C. Michael Pilato <cm...@collab.net>
CollabNet <> www.collab.net <> Enterprise Cloud Development
Re: Changelist support for svn patch?
Posted by Philip Martin <ph...@wandisco.com>.
"C. Michael Pilato" <cm...@collab.net> writes:
> On 04/17/2013 09:43 AM, Philip Martin wrote:
>> The behaviour looks simple to define for 'patch' and 'merge', I was
>> thinking about 'svn add --force' which marks all the unversioned files
>> for addition.
>
> You mean, perhaps, 'svn add --force -R' (or some other non-empty depth).
Add is recursive by default.
> But that marks files *and* directories for addition.
> directories to changelists today. :-(
I imagine a new add-to-changelist option for commands would skip
directories much like 'svn changelist'. But even if we do that it's not
clear (to me anyway) which files should be added by 'svn add --force'.
--
Certified & Supported Apache Subversion Downloads:
http://www.wandisco.com/subversion/download
Re: Changelist support for svn patch?
Posted by Philip Martin <ph...@wandisco.com>.
"C. Michael Pilato" <cm...@collab.net> writes:
> On 04/17/2013 09:43 AM, Philip Martin wrote:
>> The behaviour looks simple to define for 'patch' and 'merge', I was
>> thinking about 'svn add --force' which marks all the unversioned files
>> for addition.
>
> You mean, perhaps, 'svn add --force -R' (or some other non-empty depth).
Add is recursive by default.
> But that marks files *and* directories for addition.
> directories to changelists today. :-(
I imagine a new add-to-changelist option for commands would skip
directories much like 'svn changelist'. But even if we do that it's not
clear (to me anyway) which files should be added by 'svn add --force'.
--
Certified & Supported Apache Subversion Downloads:
http://www.wandisco.com/subversion/download
Re: Changelist support for svn patch?
Posted by "C. Michael Pilato" <cm...@collab.net>.
On 04/17/2013 09:43 AM, Philip Martin wrote:
> The behaviour looks simple to define for 'patch' and 'merge', I was
> thinking about 'svn add --force' which marks all the unversioned files
> for addition.
You mean, perhaps, 'svn add --force -R' (or some other non-empty depth).
But that marks files *and* directories for addition. We can't even add
directories to changelists today. :-(
--
C. Michael Pilato <cm...@collab.net>
CollabNet <> www.collab.net <> Enterprise Cloud Development
Re: Changelist support for svn patch?
Posted by "C. Michael Pilato" <cm...@collab.net>.
On 04/17/2013 09:43 AM, Philip Martin wrote:
> The behaviour looks simple to define for 'patch' and 'merge', I was
> thinking about 'svn add --force' which marks all the unversioned files
> for addition.
You mean, perhaps, 'svn add --force -R' (or some other non-empty depth).
But that marks files *and* directories for addition. We can't even add
directories to changelists today. :-(
--
C. Michael Pilato <cm...@collab.net>
CollabNet <> www.collab.net <> Enterprise Cloud Development
Re: Changelist support for svn patch?
Posted by Philip Martin <ph...@wandisco.com>.
Philip Martin <ph...@wandisco.com> writes:
> "C. Michael Pilato" <cm...@collab.net> writes:
>
>> 'svn merge' comes to mind as one that, like patch, does not always have
>> explicitly named targets.
>
> Yes, merge is another candidate for this behaviour.
I think it's a reasonable suggestion for patch/merge at least, so I've
raised:
http://subversion.tigris.org/issues/show_bug.cgi?id=4354
--
Certified & Supported Apache Subversion Downloads:
http://www.wandisco.com/subversion/download
Re: Changelist support for svn patch?
Posted by Philip Martin <ph...@wandisco.com>.
"C. Michael Pilato" <cm...@collab.net> writes:
> On 04/17/2013 06:43 AM, Philip Martin wrote:
>> [dev CC'd]
>>
>> Nick <no...@codesniffer.com> writes:
>>
>>> The 'patch' subcommand does not seem to support applying a changelist
>>> description to the files that are part of the patch. Any plans to
>>> support this?
>>>
>>> (Should I be asking this on the dev list?)
>>
>> That sounds like a useful feauture. The list of files affected by patch
>> is not always readily available to pass to the changelist command.
>>
>> Would this behaviour be useful for other commands?
>
> Most of our other commands have explicitly provided targets, so adding a
> changelist to those targets is a simple modification to the previous command
> issued at the prompt.
>
> For some commands, the targets aren't all explicit, but the resulting set is
> trivial to reproduce with 'svn changelist' anyway. For example, you could
> run 'svn propset -R svn:eol-style=native', which will only touch files, but
> then 'svn changelist -R' will likewise touch those same files.
>
> 'svn merge' comes to mind as one that, like patch, does not always have
> explicitly named targets.
Yes, merge is another candidate for this behaviour.
> It might be convenient for users if we supplied a sort of
> "add-affected-items-to-this-changelist" option to all of our
> schedule-a-working-copy-change types of subcommands.
The behaviour looks simple to define for 'patch' and 'merge', I was
thinking about 'svn add --force' which marks all the unversioned files
for addition. I don't know which files a user would expect to be added
to the changelist? Just the newly added files, all the added files, all
the files?
--
Certified & Supported Apache Subversion Downloads:
http://www.wandisco.com/subversion/download
Re: Changelist support for svn patch?
Posted by Philip Martin <ph...@wandisco.com>.
"C. Michael Pilato" <cm...@collab.net> writes:
> On 04/17/2013 06:43 AM, Philip Martin wrote:
>> [dev CC'd]
>>
>> Nick <no...@codesniffer.com> writes:
>>
>>> The 'patch' subcommand does not seem to support applying a changelist
>>> description to the files that are part of the patch. Any plans to
>>> support this?
>>>
>>> (Should I be asking this on the dev list?)
>>
>> That sounds like a useful feauture. The list of files affected by patch
>> is not always readily available to pass to the changelist command.
>>
>> Would this behaviour be useful for other commands?
>
> Most of our other commands have explicitly provided targets, so adding a
> changelist to those targets is a simple modification to the previous command
> issued at the prompt.
>
> For some commands, the targets aren't all explicit, but the resulting set is
> trivial to reproduce with 'svn changelist' anyway. For example, you could
> run 'svn propset -R svn:eol-style=native', which will only touch files, but
> then 'svn changelist -R' will likewise touch those same files.
>
> 'svn merge' comes to mind as one that, like patch, does not always have
> explicitly named targets.
Yes, merge is another candidate for this behaviour.
> It might be convenient for users if we supplied a sort of
> "add-affected-items-to-this-changelist" option to all of our
> schedule-a-working-copy-change types of subcommands.
The behaviour looks simple to define for 'patch' and 'merge', I was
thinking about 'svn add --force' which marks all the unversioned files
for addition. I don't know which files a user would expect to be added
to the changelist? Just the newly added files, all the added files, all
the files?
--
Certified & Supported Apache Subversion Downloads:
http://www.wandisco.com/subversion/download
Re: Changelist support for svn patch?
Posted by "C. Michael Pilato" <cm...@collab.net>.
On 04/17/2013 06:43 AM, Philip Martin wrote:
> [dev CC'd]
>
> Nick <no...@codesniffer.com> writes:
>
>> The 'patch' subcommand does not seem to support applying a changelist
>> description to the files that are part of the patch. Any plans to
>> support this?
>>
>> (Should I be asking this on the dev list?)
>
> That sounds like a useful feauture. The list of files affected by patch
> is not always readily available to pass to the changelist command.
>
> Would this behaviour be useful for other commands?
Most of our other commands have explicitly provided targets, so adding a
changelist to those targets is a simple modification to the previous command
issued at the prompt.
For some commands, the targets aren't all explicit, but the resulting set is
trivial to reproduce with 'svn changelist' anyway. For example, you could
run 'svn propset -R svn:eol-style=native', which will only touch files, but
then 'svn changelist -R' will likewise touch those same files.
'svn merge' comes to mind as one that, like patch, does not always have
explicitly named targets.
It might be convenient for users if we supplied a sort of
"add-affected-items-to-this-changelist" option to all of our
schedule-a-working-copy-change types of subcommands.
--
C. Michael Pilato <cm...@collab.net>
CollabNet <> www.collab.net <> Enterprise Cloud Development
Re: Changelist support for svn patch?
Posted by "C. Michael Pilato" <cm...@collab.net>.
On 04/17/2013 06:43 AM, Philip Martin wrote:
> [dev CC'd]
>
> Nick <no...@codesniffer.com> writes:
>
>> The 'patch' subcommand does not seem to support applying a changelist
>> description to the files that are part of the patch. Any plans to
>> support this?
>>
>> (Should I be asking this on the dev list?)
>
> That sounds like a useful feauture. The list of files affected by patch
> is not always readily available to pass to the changelist command.
>
> Would this behaviour be useful for other commands?
Most of our other commands have explicitly provided targets, so adding a
changelist to those targets is a simple modification to the previous command
issued at the prompt.
For some commands, the targets aren't all explicit, but the resulting set is
trivial to reproduce with 'svn changelist' anyway. For example, you could
run 'svn propset -R svn:eol-style=native', which will only touch files, but
then 'svn changelist -R' will likewise touch those same files.
'svn merge' comes to mind as one that, like patch, does not always have
explicitly named targets.
It might be convenient for users if we supplied a sort of
"add-affected-items-to-this-changelist" option to all of our
schedule-a-working-copy-change types of subcommands.
--
C. Michael Pilato <cm...@collab.net>
CollabNet <> www.collab.net <> Enterprise Cloud Development