using commands.log

scrappy doo shadowcwal at yahoo.com
Sat Jul 25 19:16:20 CDT 2009


Hello,

I am trying to use commands.log but I'm not sure if I'm using it right.
I tried something like:

from mercurial import commands, hg, ui

REPO_PATH = './mozilla-central'

repo = hg.repository(ui.ui(), REPO_PATH)
commands.log(ui.ui(), repo)

but I got this error message:

Traceback (most recent call last):
  File "mozilla-proj/merc_lib.py", line 8, in <module>
    commands.log(ui.ui(), repo, REPO_PATH)
  File "/usr/lib/python2.5/commands.py", line 1835, in log

  File "cmdutil.py", line 995, in walkchangerevs
KeyError: 'rev'

How can I fix this error?

I'm specifically trying to do something like hg log on a file and then work with those changesets to get their dates, diffs, etc. Is this the right approach?

Thanks,
Saung Li



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial/attachments/20090725/535633de/attachment.htm 


More information about the Mercurial mailing list