support for mercurial 2.6, thanks Vlad
This commit is contained in:
1 parent
b48be44134
commit
68b5581eb5
3 files changed
+7
-3
No files matched your search
@@ -1 +1 @@
|
|||||||
Version 2.00.0 (2012-05-28 13:04:49) dev
|
Version 2.00.0 (2012-05-28 13:08:10) dev
|
||||||
@@ -45,7 +45,7 @@ def commit():
|
|||||||
INPUT(_type='submit',_value='Commit'))
|
INPUT(_type='submit',_value='Commit'))
|
||||||
if form.accepts(request.vars,session):
|
if form.accepts(request.vars,session):
|
||||||
oldid = repo[repo.lookup('.')]
|
oldid = repo[repo.lookup('.')]
|
||||||
scmutil.addremove(repo)
|
addremove(repo)
|
||||||
repo.commit(text=form.vars.comment)
|
repo.commit(text=form.vars.comment)
|
||||||
if repo[repo.lookup('.')] == oldid:
|
if repo[repo.lookup('.')] == oldid:
|
||||||
response.flash = 'no changes'
|
response.flash = 'no changes'
|
||||||
|
|||||||
@@ -12,7 +12,11 @@ import socket
|
|||||||
from textwrap import dedent
|
from textwrap import dedent
|
||||||
|
|
||||||
try:
|
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
|
have_mercurial = True
|
||||||
except ImportError:
|
except ImportError:
|
||||||
have_mercurial = False
|
have_mercurial = False
|
||||||
|
|||||||
Reference in new issue
Block a user