Edgewall Software

Changes between Version 83 and Version 84 of TracMercurial


Ignore:
Timestamp:
Mar 14, 2011, 10:16:57 AM (13 years ago)
Author:
Christian Boos
Comment:

expand the interactive sample code used for testing the Mercurial API

Legend:

Unmodified
Added
Removed
Modified
  • TracMercurial

    v83 v84  
    413413
    414414 * From a Python console session try to import the Mercurial module, if all goes well it should not complain:
    415 {{{
    416 $ python
    417 >>> import mercurial
    418 >>>
    419 }}}
     415  {{{#!pycon
     416>>> from mercurial import ui, hg
     417>>> repo = hg.repository(ui.ui(), '/path/to/a/mercurial/repo')
     418>>> len(repo)
     419234
     420  }}}
     421  You can also look at the `hg.__file__` attribute to verify you're loading the expected Mercurial library.
     422
    420423 * Log in as an user with `TRAC_ADMIN` permission, and look in the `Admin` pages, `General / Plugins`. Do you see the entry for the !TracMercurial plugin there? If yes, is the !MercurialConnector component enabled?
    421424