]> git.e2factory.org Git - e2factory.git/commitdiff
svn: use hash_append
authorTobias Ulmer <tu@emlix.com>
Wed, 11 May 2016 17:29:54 +0000 (19:29 +0200)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:41:18 +0000 (15:41 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
plugins/svn.lua

index b914e4413983a2ae8960921ee2cea03c9fe11dad..7c73e9b747c51ed28e18164875b6995bc4bafe47 100644 (file)
@@ -283,9 +283,9 @@ function svn.svn_source:sourceid(sourceset)
     end
 
     hc = hash.hash_start()
-    hash.hash_line(hc, self._name)
-    hash.hash_line(hc, self._type)
-    hash.hash_line(hc, self._env:id())
+    hash.hash_append(hc, self._name)
+    hash.hash_append(hc, self._type)
+    hash.hash_append(hc, self._env:id())
 
     info = e2tool.info()
     assert(type(info) == "table")
@@ -296,7 +296,7 @@ function svn.svn_source:sourceid(sourceset)
         if not lid then
             return false, re
         end
-        hash.hash_line(hc, lid)
+        hash.hash_append(hc, lid)
     end
 
     surl, re = cache.remote_url(info.cache, self._server, self._location)
@@ -309,14 +309,14 @@ function svn.svn_source:sourceid(sourceset)
         return false, re
     end
 
-    hash.hash_line(hc, self._server)
-    hash.hash_line(hc, self._location)
+    hash.hash_append(hc, self._server)
+    hash.hash_append(hc, self._location)
 
     if sourceset == "tag" then
-        hash.hash_line(hc, self._tag)
+        hash.hash_append(hc, self._tag)
         argv = { "info", svnurl.."/"..self._tag }
     elseif sourceset == "branch" then
-        hash.hash_line(hc, self._branch)
+        hash.hash_append(hc, self._branch)
         argv = { "info", svnurl.."/"..self._branch }
     elseif sourceset == "lazytag" then
         return false, err.new("svn source does not support lazytag mode")
@@ -335,7 +335,7 @@ function svn.svn_source:sourceid(sourceset)
     if not svnrev or string.len(svnrev) == 0 then
         return false, err.new("could not find SVN revision")
     end
-    hash.hash_line(hc, svnrev)
+    hash.hash_append(hc, svnrev)
 
     self._sourceids[sourceset] = hash.hash_finish(hc)