Download:
child 16:42df16aab3fc
parent 14:1ee9475523f1
15:071a5ec83dcd
Anton Shestakov <av6@dwimlabs.net>, Fri, 09 Sep 2016 15:34:28 +0800
spec: test starting command server with repo path and using log with --rev

1 файлов изменено, 10 вставок(+), 0 удалений(-) [+]
spec/hglib_spec.lua file | annotate | diff | comparison | revisions
--- a/spec/hglib_spec.lua Fri Sep 09 13:24:38 2016 +0800
+++ b/spec/hglib_spec.lua Fri Sep 09 15:34:28 2016 +0800
@@ -69,4 +69,14 @@
assert.is_not_nil(e:find('unknown command'))
assert.are_equal('', d)
end)
+
+ it('can use runcommand to inspect this repo', function()
+ local client = hglib.Client.open('.')
+ local code, o, e, d = client:runcommand('log', '-r0')
+ client:close()
+ assert.are_equal(0, code)
+ assert.is_not_nil(o:find('hglib: absolute basics'))
+ assert.are_equal('', e)
+ assert.are_equal('', d)
+ end)
end)