fixed mercurial addremove (hg moved the funciton from cmdutil to scmutil)

This commit is contained in:
Massimo DiPierro
2011-11-30 22:33:55 -06:00
parent 261ae74726
commit 1fbbf1734f
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
Version 1.99.3 (2011-11-30 22:23:02) dev
Version 1.99.3 (2011-11-30 22:33:54) 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('.')]
cmdutil.addremove(repo)
scmutil.addremove(repo)
repo.commit(text=form.vars.comment)
if repo[repo.lookup('.')] == oldid:
response.flash = 'no changes'
+1 -1
View File
@@ -12,7 +12,7 @@ import socket
from textwrap import dedent
try:
from mercurial import ui, hg, cmdutil
from mercurial import ui, hg, cmdutil, scmutil
have_mercurial = True
except ImportError:
have_mercurial = False