diff -r 77bbeafd7519 -r ad787252fed6 mercurial/commands.py --- a/mercurial/commands.py Wed Aug 25 13:40:46 2010 +0200 +++ b/mercurial/commands.py Wed Aug 25 16:23:32 2010 +0200 @@ -3166,7 +3166,7 @@ target = repo.wjoin(abs) def handle(xlist, dobackup): xlist[0].append(abs) - if dobackup and not opts.get('no_backup') and util.lexists(target): + if dobackup and not opts.get('no_backup') and os.path.lexists(target): bakname = "%s.orig" % rel ui.note(_('saving current version of %s as %s\n') % (rel, bakname))