* [PATCH] Make gcapatch work for all bk transports
@ 2004-12-17 19:47 Kumar Gala
2004-12-17 22:44 ` Jeff Garzik
0 siblings, 1 reply; 6+ messages in thread
From: Kumar Gala @ 2004-12-17 19:47 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel
Andrew,
Makes the gcapatch script work for any bk transport (including http).
Signed-off-by: Kumar Gala <kumar.gala@freescale.com>
--
diff -Nru a/Documentation/BK-usage/gcapatch b/Documentation/BK-usage/gcapatch
--- a/Documentation/BK-usage/gcapatch 2004-12-17 13:42:32 -06:00
+++ b/Documentation/BK-usage/gcapatch 2004-12-17 13:42:32 -06:00
@@ -5,4 +5,4 @@
# Usage: gcapatch > foo.patch
#
-bk export -tpatch -hdu -r`bk repogca bk://linux.bkbits.net/linux-2.5`,+
+bk export -tpatch -hdu -r$(bk repogca $(bk parent -p)),+
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Make gcapatch work for all bk transports
2004-12-17 19:47 [PATCH] Make gcapatch work for all bk transports Kumar Gala
@ 2004-12-17 22:44 ` Jeff Garzik
2004-12-18 18:42 ` Kumar Gala
0 siblings, 1 reply; 6+ messages in thread
From: Jeff Garzik @ 2004-12-17 22:44 UTC (permalink / raw)
To: Kumar Gala, akpm; +Cc: linux-kernel
Kumar Gala wrote:
> Andrew,
>
> Makes the gcapatch script work for any bk transport (including http).
>
> Signed-off-by: Kumar Gala <kumar.gala@freescale.com>
>
> --
>
> diff -Nru a/Documentation/BK-usage/gcapatch b/Documentation/BK-usage/gcapatch
> --- a/Documentation/BK-usage/gcapatch 2004-12-17 13:42:32 -06:00
> +++ b/Documentation/BK-usage/gcapatch 2004-12-17 13:42:32 -06:00
> @@ -5,4 +5,4 @@
> # Usage: gcapatch > foo.patch
> #
>
> -bk export -tpatch -hdu -r`bk repogca bk://linux.bkbits.net/linux-2.5`,+
> +bk export -tpatch -hdu -r$(bk repogca $(bk parent -p)),+
It's an example script, meant to be modified to suit your local tastes.
Your patch isn't useful for situations (such as mine :)) where you have
more than one level of parent, but you want to generate a patch versus
mainline (not the parent).
Jeff
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Make gcapatch work for all bk transports
2004-12-17 22:44 ` Jeff Garzik
@ 2004-12-18 18:42 ` Kumar Gala
2004-12-18 19:27 ` Kevin P. Fleming
2005-01-04 16:09 ` Kumar Gala
0 siblings, 2 replies; 6+ messages in thread
From: Kumar Gala @ 2004-12-18 18:42 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Kumar Gala, akpm, linux-kernel
Jeff,
I didn't even think if your case. How about extracting out the transport
from 'bk parent -p' as a middle ground. I dont think this will help your
case. If not, we can leave the script as is.
- kumar
Signed-off-by: Kumar Gala <kumar.gala@freescale.com>
diff -Nru a/Documentation/BK-usage/gcapatch b/Documentation/BK-usage/gcapatch
--- a/Documentation/BK-usage/gcapatch 2004-12-18 12:39:32 -06:00
+++ b/Documentation/BK-usage/gcapatch 2004-12-18 12:39:32 -06:00
@@ -5,4 +5,4 @@
# Usage: gcapatch > foo.patch
#
-bk export -tpatch -hdu -r`bk repogca bk://linux.bkbits.net/linux-2.5`,+
+bk export -tpatch -hdu -r$(bk repogca $(bk parent -p|cut -d: -f1)://linux.bkbits.net/linux-2.5),+
On Fri, 17 Dec 2004, Jeff Garzik wrote:
> Kumar Gala wrote:
> > Andrew,
> >
> > Makes the gcapatch script work for any bk transport (including http).
> >
> > Signed-off-by: Kumar Gala <kumar.gala@freescale.com>
> >
> > --
> >
> > diff -Nru a/Documentation/BK-usage/gcapatch
> b/Documentation/BK-usage/gcapatch
> > --- a/Documentation/BK-usage/gcapatch 2004-12-17 13:42:32 -06:00
> > +++ b/Documentation/BK-usage/gcapatch 2004-12-17 13:42:32 -06:00
> > @@ -5,4 +5,4 @@
> > # Usage: gcapatch > foo.patch
> > #
> >
> > -bk export -tpatch -hdu -r`bk repogca
> bk://linux.bkbits.net/linux-2.5`,+
> > +bk export -tpatch -hdu -r$(bk repogca $(bk parent -p)),+
>
> It's an example script, meant to be modified to suit your local tastes.
>
> Your patch isn't useful for situations (such as mine :)) where you have
> more than one level of parent, but you want to generate a patch versus
> mainline (not the parent).
>
> Jeff
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Make gcapatch work for all bk transports
2004-12-18 18:42 ` Kumar Gala
@ 2004-12-18 19:27 ` Kevin P. Fleming
2005-01-04 16:09 ` Kumar Gala
1 sibling, 0 replies; 6+ messages in thread
From: Kevin P. Fleming @ 2004-12-18 19:27 UTC (permalink / raw)
To: Kumar Gala; +Cc: Jeff Garzik, akpm, linux-kernel
Kumar Gala wrote:
> I didn't even think if your case. How about extracting out the transport
> from 'bk parent -p' as a middle ground. I dont think this will help your
> case. If not, we can leave the script as is.
It would actually be nice if bk supported a method to get the "root"
parent path from any clone; this obviously won't work, though, if the
clone is disconnected (on a laptop with no link, or something).
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Make gcapatch work for all bk transports
2004-12-18 18:42 ` Kumar Gala
2004-12-18 19:27 ` Kevin P. Fleming
@ 2005-01-04 16:09 ` Kumar Gala
2005-01-06 22:49 ` Jeff Garzik
1 sibling, 1 reply; 6+ messages in thread
From: Kumar Gala @ 2005-01-04 16:09 UTC (permalink / raw)
To: Kumar Gala; +Cc: linux-kernel, Jeff Garzik, akpm
Jeff,
Did you have any issues with this following change to gcapatch? If
not, I'll resend the patch to akpm.
- kumar
On Dec 18, 2004, at 12:42 PM, Kumar Gala wrote:
> Jeff,
>
> I didn't even think if your case. How about extracting out the
> transport
> from 'bk parent -p' as a middle ground. I dont think this will help
> your
> case. If not, we can leave the script as is.
>
> - kumar
>
> Signed-off-by: Kumar Gala <kumar.gala@freescale.com>
>
> diff -Nru a/Documentation/BK-usage/gcapatch
> b/Documentation/BK-usage/gcapatch
> --- a/Documentation/BK-usage/gcapatch 2004-12-18 12:39:32 -06:00
> +++ b/Documentation/BK-usage/gcapatch 2004-12-18 12:39:32 -06:00
> @@ -5,4 +5,4 @@
> # Usage: gcapatch > foo.patch
> #
>
> -bk export -tpatch -hdu -r`bk repogca
> bk://linux.bkbits.net/linux-2.5`,+
> +bk export -tpatch -hdu -r$(bk repogca $(bk parent -p|cut -d:
> -f1)://linux.bkbits.net/linux-2.5),+
>
> On Fri, 17 Dec 2004, Jeff Garzik wrote:
>
> > Kumar Gala wrote:
> > > Andrew,
> > >
> > > Makes the gcapatch script work for any bk transport (including
> http).
> > >
> > > Signed-off-by: Kumar Gala <kumar.gala@freescale.com>
> > >
> > > --
> > >
> > > diff -Nru a/Documentation/BK-usage/gcapatch
> > b/Documentation/BK-usage/gcapatch
> > > --- a/Documentation/BK-usage/gcapatch 2004-12-17 13:42:32
> -06:00
> > > +++ b/Documentation/BK-usage/gcapatch 2004-12-17 13:42:32
> -06:00
> > > @@ -5,4 +5,4 @@
> > > # Usage: gcapatch > foo.patch
> > > #
> > >
> > > -bk export -tpatch -hdu -r`bk repogca
> > bk://linux.bkbits.net/linux-2.5`,+
> > > +bk export -tpatch -hdu -r$(bk repogca $(bk parent -p)),+
> >
> > It's an example script, meant to be modified to suit your local
> tastes.
> >
> > Your patch isn't useful for situations (such as mine :)) where you
> have
> > more than one level of parent, but you want to generate a patch
> versus
> > mainline (not the parent).
> >
> > Jeff
> >
> >
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Make gcapatch work for all bk transports
2005-01-04 16:09 ` Kumar Gala
@ 2005-01-06 22:49 ` Jeff Garzik
0 siblings, 0 replies; 6+ messages in thread
From: Jeff Garzik @ 2005-01-06 22:49 UTC (permalink / raw)
To: Kumar Gala; +Cc: linux-kernel, akpm
Kumar Gala wrote:
> Jeff,
>
> Did you have any issues with this following change to gcapatch? If not,
> I'll resend the patch to akpm.
Unfortuately not, all my local repos' parents are set to the
gkernel.bkbits.net location where they get pushed.
Jeff
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-01-06 22:53 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-17 19:47 [PATCH] Make gcapatch work for all bk transports Kumar Gala
2004-12-17 22:44 ` Jeff Garzik
2004-12-18 18:42 ` Kumar Gala
2004-12-18 19:27 ` Kevin P. Fleming
2005-01-04 16:09 ` Kumar Gala
2005-01-06 22:49 ` Jeff Garzik
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 NNTP newsgroup(s).