Mercurial > hg-stable
changeset 7949:443c0c8636ac
windows: get Abort from error
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 03 Apr 2009 14:52:03 -0500 |
parents | de377b1a9a84 |
children | 9bbcfa898cd3 |
files | mercurial/windows.py |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/windows.py Fri Apr 03 14:51:48 2009 -0500 +++ b/mercurial/windows.py Fri Apr 03 14:52:03 2009 -0500 @@ -8,9 +8,8 @@ reference. """ -import util from i18n import _ -import errno, msvcrt, os, osutil, re, sys +import errno, msvcrt, os, osutil, re, sys, error nulldev = 'NUL:' umask = 002 @@ -228,7 +227,7 @@ def getuser(): '''return name of current user''' - raise util.Abort(_('user name not available - set USERNAME ' + raise error.Abort(_('user name not available - set USERNAME ' 'environment variable')) def username(uid=None):