[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-commits-diffs] net.venge.monotone.lua-5.2: d8a7704a25f37b3d282
From: |
code |
Subject: |
[Monotone-commits-diffs] net.venge.monotone.lua-5.2: d8a7704a25f37b3d282eaa56730eb2b7a96b5dca |
Date: |
Wed, 25 Apr 2012 17:44:07 +0200 (CEST) |
revision: d8a7704a25f37b3d282eaa56730eb2b7a96b5dca
date: 2012-04-25T15:43:48
author: Richard Levitte <address@hidden>
branch: net.venge.monotone.lua-5.2
changelog:
* test/func/user_commands/extra_rc (check_head): The previous change
wasn't quite correct. `...' has quite a lot of limits, the simplest
way to handle it as a list is to assign it as a list to some variable.
In this case, it was not necessary to call `unpack', since all we want
is the first item. This is a good thing, because in Lua 5.2, `unpack'
was moved and became `table.unpack'.
manifest:
format_version "1"
new_manifest [b795a5fb8a1382436879b9315bd542fac9b3b8ac]
old_revision [6a2fdd691a5aaf2a59367acc15d9f98ba44d8a35]
patch "test/func/user_commands/extra_rc"
from [9a5ec1738ea71aee61b3b3847e70bec67ff01228]
to [7830e76cf219e92da08c959d7f9e33804be59c5a]
============================================================
--- test/func/user_commands/extra_rc 9a5ec1738ea71aee61b3b3847e70bec67ff01228
+++ test/func/user_commands/extra_rc 7830e76cf219e92da08c959d7f9e33804be59c5a
@@ -5,7 +5,8 @@ function check_head(...)
io.stderr:write("automate call failed\n")
return
end
- arghead = unpack(...)
+ local arg = {...}
+ arghead = arg[1]
heads = heads:gsub("^%s*(.-)%s*$", "%1") -- trim leading and trailing whitespace
if (heads == arghead) then
io.write("heads are equal\n")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Monotone-commits-diffs] net.venge.monotone.lua-5.2: d8a7704a25f37b3d282eaa56730eb2b7a96b5dca,
code <=