Hello,
I have just installed Tortoise HG 2.1.2 with hg (mercurial) version 1.9.1
x64 for Python 2.7 64bit on windows 7x64.
I am running web2py version 1.98.2 from source with win32 python extensions.
When I hit the version tab in the app admin then I get the commit form. When
I fill in the comment and submit I get the following error listed below via
the ticket system:
"
Traceback (most recent call last):
File "N:\Apps\web2py_src\web2py\gluon\restricted.py", line 192, in
restricted
exec ccode in environment
File
"N:/Apps/web2py_src/web2py/applications/admin/controllers/mercurial.py",
line 84, in <module>
File "N:\Apps\web2py_src\web2py\gluon\globals.py", line 145, in <lambda>
self._caller = lambda f: f()
File
"N:/Apps/web2py_src/web2py/applications/admin/controllers/mercurial.py",
line 48, in commit
cmdutil.addremove(repo)
AttributeError: 'module' object has no attribute 'addremove'
"
with the code lines (indentation might be altered here):
I am a new user so forgive me if I am missing something. Does anyone know
what might be wrong? The version of Tortoise HG is current as of 8/1, so I
am wondering if the API has recently changed but I didn't see anything
written about it.
"
repo = hg_repo(path)
form = FORM('Comment:',INPUT(_name='comment',requires=IS_NOT_EMPTY()),
INPUT(_type='submit',_value='Commit'))
if form.accepts(request.vars,session):
oldid = repo[repo.lookup('.')]
cmdutil.addremove(repo)
repo.commit(text=form.vars.comment)
if repo[repo.lookup('.')] == oldid:
response.flash = 'no changes'
try:
"
I am a new user of mercurial, python and web2py, so forgive me if I am
missing something. The version of Tortoise HG is current as of 8/1, so I am
wondering if the API has recently changed but I didn't see anything written
about it.
If it helps to save time, I would be happy to post the cmdutil.py or any
other source files from the relevant mercurial folder.