support for mercurial 2.6, thanks Vlad

This commit is contained in:
Massimo Di Pierro
2012-05-28 13:08:15 -05:00
parent b48be44134
commit 68b5581eb5
3 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.00.0 (2012-05-28 13:04:49) dev
Version 2.00.0 (2012-05-28 13:08:10) dev
+1 -1
View File
@@ -45,7 +45,7 @@ def commit():
INPUT(_type='submit',_value='Commit'))
if form.accepts(request.vars,session):
oldid = repo[repo.lookup('.')]
scmutil.addremove(repo)
addremove(repo)
repo.commit(text=form.vars.comment)
if repo[repo.lookup('.')] == oldid:
response.flash = 'no changes'
+5 -1
View File
@@ -12,7 +12,11 @@ import socket
from textwrap import dedent
try:
from mercurial import ui, hg, cmdutil, scmutil
from mercurial import ui, hg, cmdutil
try:
from mercurial.scmutil import addremove
except:
from mercurial.cmdutil import addremove
have_mercurial = True
except ImportError:
have_mercurial = False