public inbox for patchutils-list@sourceware.org
 help / color / mirror / Atom feed
* reorder patches
@ 2008-06-19 13:13 Jack Andrews
  2008-06-19 13:19 ` Tim Waugh
  2008-06-19 13:29 ` Serj Kalichev
  0 siblings, 2 replies; 5+ messages in thread
From: Jack Andrews @ 2008-06-19 13:13 UTC (permalink / raw)
  To: patchutils-list

hi guys,

say i have a series of patches A,B,C each of which patches the same
part of a file. is there an automated way to reorder these patches to
C,B,A?  or are there some things that just have to be done by hand?


ta, jack

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: reorder patches
  2008-06-19 13:13 reorder patches Jack Andrews
@ 2008-06-19 13:19 ` Tim Waugh
  2008-06-19 13:28   ` Jack Andrews
  2008-06-19 13:29 ` Serj Kalichev
  1 sibling, 1 reply; 5+ messages in thread
From: Tim Waugh @ 2008-06-19 13:19 UTC (permalink / raw)
  To: Jack Andrews; +Cc: patchutils-list

[-- Attachment #1: Type: text/plain, Size: 534 bytes --]

On Thu, 2008-06-19 at 23:12 +1000, Jack Andrews wrote:
> say i have a series of patches A,B,C each of which patches the same
> part of a file. is there an automated way to reorder these patches to
> C,B,A?  or are there some things that just have to be done by hand?

This was the original reason for trying to implement 'flipdiff' -- you
may or may not find that it works for you.  Unfortunately it turns out
to be a hard problem when all you have is the patches, so there are lots
of cases it won't work for.

Tim.
*/


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: reorder patches
  2008-06-19 13:19 ` Tim Waugh
@ 2008-06-19 13:28   ` Jack Andrews
  2008-06-19 13:31     ` Tim Waugh
  0 siblings, 1 reply; 5+ messages in thread
From: Jack Andrews @ 2008-06-19 13:28 UTC (permalink / raw)
  To: Tim Waugh; +Cc: patchutils-list

On Thu, Jun 19, 2008 at 11:18 PM, Tim Waugh <twaugh@redhat.com> wrote:
> This was the original reason for trying to implement 'flipdiff' -- you
> may or may not find that it works for you.  Unfortunately it turns out
> to be a hard problem when all you have is the patches, so there are lots
> of cases it won't work for.

is it solved in the case i have the base source as well as the patches?

ta, jack

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: reorder patches
  2008-06-19 13:13 reorder patches Jack Andrews
  2008-06-19 13:19 ` Tim Waugh
@ 2008-06-19 13:29 ` Serj Kalichev
  1 sibling, 0 replies; 5+ messages in thread
From: Serj Kalichev @ 2008-06-19 13:29 UTC (permalink / raw)
  To: Jack Andrews; +Cc: patchutils-list

Jack Andrews wrote:
> hi guys,
>
> say i have a series of patches A,B,C each of which patches the same
> part of a file. is there an automated way to reorder these patches to
> C,B,A?  or are there some things that just have to be done by hand?
>
>
> ta, jack
>   
I suppose there is no such way. If you patches are very simple and only 
add a independent strings you have a chance (with possible problems). 
But for more complex patches there is no unified way.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: reorder patches
  2008-06-19 13:28   ` Jack Andrews
@ 2008-06-19 13:31     ` Tim Waugh
  0 siblings, 0 replies; 5+ messages in thread
From: Tim Waugh @ 2008-06-19 13:31 UTC (permalink / raw)
  To: Jack Andrews; +Cc: patchutils-list

[-- Attachment #1: Type: text/plain, Size: 344 bytes --]

On Thu, 2008-06-19 at 23:27 +1000, Jack Andrews wrote:
> is it solved in the case i have the base source as well as the patches?

Certainly 'git rebase -i' seems to manage it quite well for git
repositories.  It is more sophisticated in that it allows several
different types of 'merge driver' to help with merge conflicts.

Tim.
*/


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-06-19 13:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-19 13:13 reorder patches Jack Andrews
2008-06-19 13:19 ` Tim Waugh
2008-06-19 13:28   ` Jack Andrews
2008-06-19 13:31     ` Tim Waugh
2008-06-19 13:29 ` Serj Kalichev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).