You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Karl Fogel <kf...@newton.ch.collab.net> on 2003/03/10 21:29:41 UTC

Re: [PATCH] fix dist.sh tar-ball name.

Michael Price <mp...@atl.lmco.com> writes:
> I wanted to get comments before checking it in.
> 
> Sample usage:
> 
>   ./dist.sh HEAD r5240 http://svn.collab.net/repos/svn/branches/release-0.19 0.19

I'm not sure I understand.  Why not just replace the "r5240" with
"0.19", instead of adding "0.19" at the end?

-K

> Index: dist.sh
> ===================================================================
> --- dist.sh	(revision 5265)
> +++ dist.sh	(working copy)
> @@ -1,7 +1,7 @@
>  #!/bin/sh
>  
>  #
> -# USAGE: ./dist.sh [VERSION [NAME [REPOS-PATH]]]
> +# USAGE: ./dist.sh [VERSION [NAME [REPOS-PATH [RELEASE-NUMBER]]]]
>  #
>  #   Create a distribution tarball, labelling it with the given version. If
>  #   the version is not supplied, the HEAD version will be used.
> @@ -24,6 +24,8 @@
>  # Run this script in the top-level of a configured working copy that
>  # has apr, apr-util, and neon subdirs, and you'll end up with
>  # subversion-rXXX.tar.gz in that top-level directory.
> +# If you specified a RELEASE-NUMBER then you'll end up with
> +# subversion-RELEASE-NUMBER.tar.gz
>  #
>  # Unless specified otherwise (with a single REVISION argument to this
>  # script), the tarball will be based on the HEAD of the repository.
> @@ -69,9 +71,14 @@
>    REPOS_PATH="`echo $REPOS_PATH | sed 's/^\/*//'`"
>  fi
>  
> +RELEASE_NUMBER="$4"
> +if test -z "$RELEASE_NUMBER"; then
> +  RELEASE_NUMBER="$RELEASE_NAME"
> +fi
> +
>  ### The tarball's basename, also the name of the subdirectory into which
>  ### it should unpack.
> -DISTNAME=subversion-${RELEASE_NAME}
> +DISTNAME=subversion-${RELEASE_NUMBER}
>  echo "Distribution will be named: ${DISTNAME}"
>  echo "     constructed from path: /${REPOS_PATH}"
>  
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] fix dist.sh tar-ball name.

Posted by Karl Fogel <kf...@newton.ch.collab.net>.
Michael Price <mp...@atl.lmco.com> writes:
> So I'll leave dish.sh as is. However, the tar-ball will be named
> subversion-0.19.tar.gz, will extract into subversion-0.19, and will have
> r5240 in the --version text. I'll continue doing this until I get clear
> consensus on the desired dist.sh behavior.

That's a good result, +1 :-).

> Good money says I'll be using this patch for several releases while
> everyone talks about what dist.sh should be doing. But I'm a pessimist
> so I could be wrong.

Heh.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] fix dist.sh tar-ball name.

Posted by Karl Fogel <kf...@newton.ch.collab.net>.
Tobias Ringstrom <to...@ringstrom.mine.nu> writes:
> Btw, the new cvs2svn in 0.19 is awesome!  Now I can really start moving
> stuff from CVS to Subversion.

Be careful -- the branch/tag support is present, but uses a very
simple algorithm that results in lots and lots of copies in the
repository.  That may be fine; I'm just saying you should check the
results using 'svn log -v' or something, to make sure it'll work for
you.

-K

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] fix dist.sh tar-ball name.

Posted by Tobias Ringstrom <to...@ringstrom.mine.nu>.
On Tue, 11 Mar 2003, [UTF-8] Branko Čibej wrote:

> We used to cut releases straight from the trunk, without creating a
> release branch first. In those days, we needed that revision number so
> that we could identify where the release came from. With the new process
> (create branch first, then move branch to tag), they're no longer
> necessary -- but remain for hysterical reasons.

Ahh... I see.  Thanks!

Btw, the new cvs2svn in 0.19 is awesome!  Now I can really start moving
stuff from CVS to Subversion.

/Tobias


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org


Re: [PATCH] fix dist.sh tar-ball name.

Posted by Branko Čibej <br...@xbc.nu>.
Tobias Ringstrom wrote:

>On Mon, 10 Mar 2003, Michael Price wrote:
>
>  
>
>>P.S. And for the record, my favorite bike-shed color is red.
>>    
>>
>
>Ouch. I was asking because I thought I was missing something that could be
>important. I did not mean to argue that there was a problem with the
>script or to imply that I in any way knew better. I am sorry if that is
>how I came through. It was not my intention.
>
>The official subversion release method is a strong precedence, and I have
>been wondering why the repository version was used to identify releases. I
>assumed it was for a good reason, but I could not see it.
>
>I am in the process of converting projects to subversion, and if there's a
>good reason to couple tags with repo version, I wanted to know that now,
>instead of discovering it the hard way later on.
>  
>

We used to cut releases straight from the trunk, without creating a
release branch first. In those days, we needed that revision number so
that we could identify where the release came from. With the new process
(create branch first, then move branch to tag), they're no longer
necessary -- but remain for hysterical reasons.

-- 
Brane Čibej   <br...@xbc.nu>   http://www.xbc.nu/brane/


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] fix dist.sh tar-ball name.

Posted by Tobias Ringstrom <to...@ringstrom.mine.nu>.
On Mon, 10 Mar 2003, Michael Price wrote:

> P.S. And for the record, my favorite bike-shed color is red.

Ouch. I was asking because I thought I was missing something that could be
important. I did not mean to argue that there was a problem with the
script or to imply that I in any way knew better. I am sorry if that is
how I came through. It was not my intention.

The official subversion release method is a strong precedence, and I have
been wondering why the repository version was used to identify releases. I
assumed it was for a good reason, but I could not see it.

I am in the process of converting projects to subversion, and if there's a
good reason to couple tags with repo version, I wanted to know that now,
instead of discovering it the hard way later on.

/Tobias


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] fix dist.sh tar-ball name.

Posted by Michael Price <mp...@atl.lmco.com>.
The patch was just that -- a patch to use until we re-write dist.sh as
we see fit.

Every release everyone "talks" about what dist.sh "should" do but it
never gets written.

The patch is a band-aid.

So I'll leave dish.sh as is. However, the tar-ball will be named
subversion-0.19.tar.gz, will extract into subversion-0.19, and will have
r5240 in the --version text. I'll continue doing this until I get clear
consensus on the desired dist.sh behavior.

Good money says I'll be using this patch for several releases while
everyone talks about what dist.sh should be doing. But I'm a pessimist
so I could be wrong.

Michael

P.S. And for the record, my favorite bike-shed color is red.
     Nothing says bike-shed like the color red. I doubt anyone
     will change my mind on this :)



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] fix dist.sh tar-ball name.

Posted by Branko Čibej <br...@xbc.nu>.
Karl Fogel wrote:

>Michael Price <mp...@atl.lmco.com> writes:
>  
>
>>Because then you get:
>>
>>  $ svn --version
>>  svn, version 0.19.0 (0.19)
>>
>>rather than:
>>
>>  $ svn --version
>>  svn, version 0.19.0 (r5240)
>>
>>I thought the rXXXX stuff was useful in the --version text, it just
>>makes for a silly tar-ball name.
>>    
>>
>
>Ah, I see.  I guess dist.sh will need to explain this better... :-)
>  
>
What if dist.sh just used the VERSION parameter to generate the version
tag (the "r1234" bit), and used the NAME parameter in the tarball name?
It's not as if anybody had been using NAME for anything else, and in
time we'll turn dist.sh upside-down anyway.

(Actually, it could just pull the version string from svn_version.h
later on.)

-- 
Brane Čibej   <br...@xbc.nu>   http://www.xbc.nu/brane/


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] fix dist.sh tar-ball name.

Posted by Karl Fogel <kf...@newton.ch.collab.net>.
Tobias Ringstrom <to...@ringstrom.mine.nu> writes:
> Pardon my ignorance beeing a newcomer and all, but why is the repository
> version number interesting at all?  You need to know what subdir you are
> referring to anyway, and if you have say /tags/release-0.19, then that is
> all you need to know, isn't it?  All newer repository versions should
> contain the same version of the /tags/release-0.19 tree, or else it is not
> working as a tag.  I understand that you (technically) *can* update
> /tags/release-0.19, but policy should be to to forbid such actions,
> shouldn't it?

It's only for convenience -- so you can compare your client against
the Subversion logs and know what changes went into it.

-K

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] fix dist.sh tar-ball name.

Posted by Tobias Ringstrom <to...@ringstrom.mine.nu>.
On 10 Mar 2003, Karl Fogel wrote:

> Michael Price <mp...@atl.lmco.com> writes:
> > Because then you get:
> > 
> >   $ svn --version
> >   svn, version 0.19.0 (0.19)
> > 
> > rather than:
> > 
> >   $ svn --version
> >   svn, version 0.19.0 (r5240)
> > 
> > I thought the rXXXX stuff was useful in the --version text, it just
> > makes for a silly tar-ball name.
> 
> Ah, I see.  I guess dist.sh will need to explain this better... :-)

Pardon my ignorance beeing a newcomer and all, but why is the repository
version number interesting at all?  You need to know what subdir you are
referring to anyway, and if you have say /tags/release-0.19, then that is
all you need to know, isn't it?  All newer repository versions should
contain the same version of the /tags/release-0.19 tree, or else it is not
working as a tag.  I understand that you (technically) *can* update
/tags/release-0.19, but policy should be to to forbid such actions,
shouldn't it?

Or are you adding the repo version to safe-guard against accidental 
modification of the tag?

In essence, why not simply the following if build from a tag,

    $ svn --version
    svn, version 0.19.0

and possibly

    $ svn --version
    svn, version r5240-trunk

if it's built from the trunk.

/Tobias


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] fix dist.sh tar-ball name.

Posted by Karl Fogel <kf...@newton.ch.collab.net>.
Michael Price <mp...@atl.lmco.com> writes:
> Because then you get:
> 
>   $ svn --version
>   svn, version 0.19.0 (0.19)
> 
> rather than:
> 
>   $ svn --version
>   svn, version 0.19.0 (r5240)
> 
> I thought the rXXXX stuff was useful in the --version text, it just
> makes for a silly tar-ball name.

Ah, I see.  I guess dist.sh will need to explain this better... :-)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] fix dist.sh tar-ball name.

Posted by Michael Price <mp...@atl.lmco.com>.
Karl Fogel writes:
 > I'm not sure I understand.  Why not just replace the "r5240" with
 > "0.19", instead of adding "0.19" at the end?

Because then you get:

  $ svn --version
  svn, version 0.19.0 (0.19)

rather than:

  $ svn --version
  svn, version 0.19.0 (r5240)

I thought the rXXXX stuff was useful in the --version text, it just
makes for a silly tar-ball name.

Michael


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org