changeset 5102:eca5b31cffc7

record: raise an exception correctly if we can't create a backup directory
author Bryan O'Sullivan <bos@serpentine.com>
date Mon, 06 Aug 2007 12:53:49 -0700
parents c9126c24e098
children 462cc56d898f
files hgext/record.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/record.py
+++ b/hgext/record.py
@@ -327,8 +327,8 @@ def record(ui, repo, *pats, **opts):
         try:
             os.mkdir(backupdir)
         except OSError, err:
-            if err.errno == errno.EEXIST:
-                pass
+            if err.errno != errno.EEXIST:
+                raise
         try:
             for f in newfiles:
                 if f not in modified: