comparison hglib/client.py @ 17:b68c444d42bb

client: add missing options to log() leaving --patch/stat out for now
author Idan Kamara <idankk86@gmail.com>
date Wed, 10 Aug 2011 23:27:57 +0300
parents 943aff89b068
children 518149e32888
comparison
equal deleted inserted replaced
16:943aff89b068 17:b68c444d42bb
264 return [] 264 return []
265 265
266 out = util.eatlines(out, 2).split('\0')[:-1] 266 out = util.eatlines(out, 2).split('\0')[:-1]
267 return self._parserevs(out) 267 return self._parserevs(out)
268 268
269 def log(self, revrange=None): 269 def log(self, revrange=None, files=[], follow=False, followfirst=False,
270 args = cmdbuilder('log', template=templates.changeset, rev=revrange) 270 date=None, copies=False, keyword=None, removed=False, onlymerges=False,
271 user=None, branch=None, prune=None, hidden=False, limit=None,
272 nomerges=False, include=None, exclude=None):
273 args = cmdbuilder('log', *files, template=templates.changeset,
274 r=revrange, f=follow, follow_first=followfirst,
275 d=date, C=copies, k=keyword, removed=removed,
276 m=onlymerges, u=user, b=branch, P=prune, h=hidden,
277 l=limit, M=nomerges, I=include, X=exclude)
271 278
272 out = self.rawcommand(args) 279 out = self.rawcommand(args)
273 out = out.split('\0')[:-1] 280 out = out.split('\0')[:-1]
274 281
275 return self._parserevs(out) 282 return self._parserevs(out)