# HG changeset patch # User Julien Cristau # Date 1390811395 -3600 # Node ID 5d3783aebe5f82bb9dc90fde31543c262b797dd4 # Parent c13b99b01008dfd7694e32f803fa679ff0c070d1 log: fix 'hidden' option We were passing -h, which is 'help', not 'hidden'. diff -r c13b99b01008 -r 5d3783aebe5f hglib/client.py --- a/hglib/client.py Mon Jul 01 18:11:33 2013 -0500 +++ b/hglib/client.py Mon Jan 27 09:29:55 2014 +0100 @@ -944,7 +944,7 @@ args = cmdbuilder('log', template=templates.changeset, r=revrange, f=follow, follow_first=followfirst, d=date, C=copies, k=keyword, removed=removed, - m=onlymerges, u=user, b=branch, P=prune, h=hidden, + m=onlymerges, u=user, b=branch, P=prune, hidden=hidden, l=limit, M=nomerges, I=include, X=exclude, *files) out = self.rawcommand(args) diff -r c13b99b01008 -r 5d3783aebe5f tests/test-log.py --- a/tests/test-log.py Mon Jul 01 18:11:33 2013 -0500 +++ b/tests/test-log.py Mon Jan 27 09:29:55 2014 +0100 @@ -17,8 +17,10 @@ self.assertEquals(revs[0], self.client.log('0')[0]) self.assertEquals(self.client.log(), self.client.log(files=['a'])) + self.assertEquals(self.client.log(), self.client.log(hidden=True)) + # def test_errors(self): # self.assertRaisesRegexp(CommandError, 'abort: unknown revision', self.client.log, 'foo') # self.append('a', 'a') # self.client.commit('first', addremove=True) - # self.assertRaisesRegexp(CommandError, 'abort: unknown revision', self.client.log, 'bar') \ No newline at end of file + # self.assertRaisesRegexp(CommandError, 'abort: unknown revision', self.client.log, 'bar')