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
@@ -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'