[Pkg-mozext-commits] [adblock-plus] 35/464: Use the correct hg command to determine current revision number

David Prévot taffit at moszumanska.debian.org
Tue Jul 22 20:43:59 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository adblock-plus.

commit f404200003ea1d0610ec4d129a6326e15fd3ce98
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Fri Jun 5 15:37:27 2009 +0200

    Use the correct hg command to determine current revision number
    
    --HG--
    extra : rebase_source : e47463ff419b4d2d98ba6600ddb2c1d9639d1466
---
 Packager.pm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Packager.pm b/Packager.pm
index 0d8090e..c50bd85 100644
--- a/Packager.pm
+++ b/Packager.pm
@@ -7,7 +7,11 @@ sub new
 {
   my ($class, $params) = @_;
 
-  $params->{build} = `hg tip --template '{node|short}'` unless exists($params->{build});
+  unless (exists($params->{build}))
+  {
+    $params->{build} = `hg id -i`;
+    $params->{build} =~ s/\W//gs;
+  }
 
   my $self = bless($params, $class);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git



More information about the Pkg-mozext-commits mailing list