File devscripts-2.11.7-debcommit-hg16.patch of Package deb
diff -urN devscripts-2.11.7.orig/scripts/debcommit.pl devscripts-2.11.7/scripts/debcommit.pl
--- devscripts-2.11.7.orig/scripts/debcommit.pl 2012-05-21 11:36:59.813426755 +0800
+++ devscripts-2.11.7/scripts/debcommit.pl 2012-05-21 11:45:02.100397337 +0800
@@ -592,7 +592,9 @@
else {
die "debcommit: unknown program $prog";
}
- die "debcommit: commit failed\n" if (! $action_rc);
+ # mercurial 1.6 returns failure if nothing is to be committed
+ # but we still want to continue with tagging
+ die "debcommit: commit failed\n" if (! $action_rc) && (! $release);
}
sub tag {