tags 347322 + patch
thanks

See attached patch to implement the requested feature.
The patch is against lates svn -r2262. 

   patch -p0 < the.patch

Jari

Separate Changelog below:

=== modified file 'debian/changelog'
--- debian/changelog    2007-01-28 11:34:02 +0000
+++ debian/changelog    2007-01-28 11:45:26 +0000
@@ -1,6 +1,11 @@
 svn-buildpackage (0.6.17) UNRELEASED; urgency=low

   * NOT RELEASED YET
+
+  [ Jari Aalto ]
+  * svn-upgrade: Added option --verbose and --version.
+  * svn-buildpackage, svn-upgrade: Added option -N|--no-unrelease-tag to not
+    add word UNRELEASED to debian/changelog (Closes: #347322)

  -- Eduard Bloch <[EMAIL PROTECTED]>  Tue, 26 Dec 2006 16:09:44 +0100

=== modified file 'doc/svn-buildpackage.1'
--- doc/svn-buildpackage.1	2007-01-28 11:34:02 +0000
+++ doc/svn-buildpackage.1	2007-01-28 11:37:04 +0000
@@ -34,6 +34,9 @@
 \fB\-h\fR, \fB\-\-help\fR
 Show the help message
 .TP
+\fB\-N\fR, \fB\-\-no\-unrelease\-tag\fR
+Do not add UNRELEASED word to debian/changelog
+.TP
 \fB\-\-svn\-verbose\fR
 More verbose program output
 .TP

=== modified file 'doc/svn-upgrade.1'
--- doc/svn-upgrade.1	2006-12-01 12:04:44 +0000
+++ doc/svn-upgrade.1	2006-12-01 14:58:59 +0000
@@ -10,23 +10,26 @@
 repository, upgrading it to a new upstream release. The repository
 filesystem tree must be in the format created by svn\-inject.
 .TP
-\fB\-V\fR, \fB\-\-version\fR
-STRING    Forces a different upstream version string
-.TP
-.TP
-\fB\-c\fR, \fB\-\--clean\fR
+\fB\-c\fR, \fB\-\-clean\fR
 Runs "make clean" and removed the debian/ directory in the new source.
 .TP
+\fB\-N\fR, \fB\-\-no\-unrelease\-tag\fR
+Do not add word UNRELEASED to debian/changelog
+.TP
 \fB\-P\fR, \fB\-\-packagename\fR STRING
 Forces a different package name
 .TP
-\fB\-v\fR, \fB\-\-verbose\fR
-More verbose program output
-.TP
 \fB\-r\fR, \fB\-\-replay\-conflicting\fR
 Extra cleanup run: replaces all conflicting files with upstream
 versions. Review of "svn status" output before doing that could make
 sense.
+.TP
+\fB\-v\fR, \fB\-\-verbose\fR
+More verbose program output
+.TP
+\fB\-V\fR, \fB\-\-version\fR
+STRING    Forces a different upstream version string
+.TP
 .PP
 Tarballs must be compressed with gzip or bzip2.
 .SH "SEE ALSO"

=== modified file 'svn-buildpackage'
--- svn-buildpackage	2007-01-28 11:34:02 +0000
+++ svn-buildpackage	2007-01-28 11:37:04 +0000
@@ -20,24 +20,25 @@
 repository must be in the format created by svn-inject, and this script
 must be executed from the work directory (trunk/package).
 
-  -h, --help           Show the help message
-  --svn-dont-clean     Don't run debian/rules clean (default: clean first)
-  --svn-dont-purge     Don't wipe the build directory (default: purge after build)
-  --svn-no-links       Don't use file links (default: use links where possible)
-  --svn-ignore-new     Don't stop on svn conflicts or new/changed files
-  --svn-verbose        More verbose program output
-  --svn-builder CMD    Use CMD as build command instead of dpkg-buildpackage
-  --svn-override a=b   Override some config variable (comma separated list)
-  --svn-move           Move package files to .. after successful build
-  --svn-move-to XYZ    Move package files to XYZ, implies --svn-move
-  --svn-only-tag       Tags the current trunk directory without building
-  --svn-tag            Final build: Export && build && tag && dch -i
-  --svn-retag          Replace an existing tag directory if found while tagging
-  --svn-lintian        Run lintian after the build. s/lintian/linda/ to use linda
-  --svn-pkg PACKAGE    Specifies the package name
-  --svn-export         Just prepares the build directory and exits
-  --svn-reuse          Reuse an existing build directory, copy trunk over it
-  --svn-noninteractive Turn off interactive mode
+  -h, --help             Show the help message
+  -N, --no-unrelease-tag Do not add word UNRELEASED to debian/changelog
+  --svn-dont-clean       Don't run debian/rules clean (default: clean first)
+  --svn-dont-purge       Don't wipe the build directory (default: purge after build)
+  --svn-no-links         Don't use file links (default: use links where possible)
+  --svn-ignore-new       Don't stop on svn conflicts or new/changed files
+  --svn-verbose          More verbose program output
+  --svn-builder CMD      Use CMD as build command instead of dpkg-buildpackage
+  --svn-override a=b     Override some config variable (comma separated list)
+  --svn-move             move package files to .. after successful build
+  --svn-move-to XYZ      move package files to XYZ, implies --svn-move
+  --svn-only-tag         Tags the current trunk directory without building
+  --svn-tag              Final build: Export && build && tag && dch -i
+  --svn-retag            replace an existing tag directory if found while tagging
+  --svn-lintian          Run lintian after the build. s/lintian/linda/ to use linda
+  --svn-pkg PACKAGE      Specifies the package name
+  --svn-export           Just prepares the build directory and exits
+  --svn-reuse            Reuse an existing build directory, copy trunk over it
+  --svn-noninteractive   Turn off interactive mode
 
 If the debian directory has the mergeWithUpstream property, svn-buildpackage
 will extract .orig.tar.gz file first and add the Debian files to it.
@@ -67,6 +68,7 @@
 my @opt_override;
 my $opt_move;
 my $package;
+my $opt_no_unrelease_tag;
 
 %options = (
    "h|help"                => \$opt_help,
@@ -98,7 +100,8 @@
    "svn-move-to=s"             => \$opt_move_to,
    "svn-builder=s"             => \$opt_buildcmd,
    "svn-override=s"             => [EMAIL PROTECTED],
-   "svn-pkg=s"             => \$package
+   "svn-pkg=s"             => \$package,
+   "N|no-unrelease-tag"    => \$opt_no_unrelease_tag
 );
 
 use lib "/usr/share/svn-buildpackage";
@@ -190,7 +193,7 @@
    # no -d switch is there and no prebuild hook is set
    {
       if(  (!grep {$_ eq "-d"} @ARGV)
-         && (! withechoNoPrompt("dpkg-checkbuilddeps")) 
+         && (! withechoNoPrompt("dpkg-checkbuilddeps"))
          && ! $opt_prebuild
       )
 
@@ -244,7 +247,10 @@
    system "$opt_pretag" if($opt_pretag);
    withecho ("svn", "-m", "$scriptname Tagging $package ($tagVersion)", "cp", $$c{"trunkUrl"}, $$c{"tagsUrl"}."/$tagVersion");
    system "$opt_posttag" if($opt_posttag);
-   withecho "dch -D UNRELEASED -i \"NOT RELEASED YET\"";
+
+   my $tag = $opt_no_unrelease_tag ? "" : "-D UNRELEASED";
+
+   withecho "dch $tag -i \"NOT RELEASED YET\"";
    print "\nI: Done! Last commit pending, please execute manually.\n";
    SDCommon::sd_exit 0;
 }

=== modified file 'svn-upgrade'
--- svn-upgrade	2007-01-28 11:34:02 +0000
+++ svn-upgrade	2007-01-28 11:37:04 +0000
@@ -17,13 +17,14 @@
 Upgrade a source code package from an upstream revision. The source code
 repository must be in the format created by svn-inject.
 
-  -V, --upstreamversion  STRING    Forces a different upstream version string
   -c, --clean                      generic cleanup of upstream source - remove
                                    debian directory and object files
   -f, --force                      Force execution of certain operations
-  -v, --verbose                    More verbose program output
+  -N, --no-unrelease-tag           Do not add UNRELEASED word to debian/changelog
   -r, --replay-conflicting         Special cleanup action: replaces all
                                    conflicting files with upstream versions
+  -v, --verbose                    More verbose program output
+  -V, --upstreamversion  STRING    Forces a different upstream version string
 
 The new source may be a tarball compressed with gzip or bzip2 or a
 directory with extraced source.
@@ -39,15 +40,18 @@
 my $verbose;
 my $keep_removed;
 my $quiet="-q";
+my $opt_no_unrelease_tag;
 
-%options = (
-   "h|help"                => \$opt_help,
-   "V|upstreamversion=s"   => \$version,
-   "upstream-version=s"   => \$version,
-   "c|clean"             => \$opt_clean,
-   "f|force"             => \$opt_force,
-   "v|verbose"             => \$verbose,
-   "r|replay-conflicting"  => \$opt_replay
+%options = 
+(
+ "h|help"                => \$opt_help,
+ "V|upstreamversion=s"   => \$version,
+ "upstream-version=s"    => \$version,
+ "c|clean"               => \$opt_clean,
+ "f|force"               => \$opt_force,
+ "v|verbose"             => \$verbose,
+ "r|replay-conflicting"  => \$opt_replay,
+ "N|no-unrelease-tag"    => \$opt_no_unrelease_tag
 );
 
 &help unless ( GetOptions(%options));
@@ -282,7 +286,9 @@
 
 $version = join ':', $epoch, $version if $epoch;
 
-withecho "debchange -D UNRELEASED -v \"$version-1\" \"(NOT RELEASED YET) New upstream release\"";
+my $tag = $opt_no_unrelease_tag ? "" : "-D UNRELEASED";
+
+withecho "debchange $tag -v \"$version-1\" \"(NOT RELEASED YET) New upstream release\"";
 print "Done! Last commit pending, please execute manually.\n";
 
 sub which {

Reply via email to