Mercurial > python-hglib
changeset 120:5d3783aebe5f 1.2
log: fix 'hidden' option
We were passing -h, which is 'help', not 'hidden'.
author | Julien Cristau <julien.cristau@logilab.fr> |
---|---|
date | Mon, 27 Jan 2014 09:29:55 +0100 |
parents | c13b99b01008 |
children | cc905ee18449 |
files | hglib/client.py tests/test-log.py |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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)
--- 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')