changeset 5129: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	Mon Aug 06 12:53:17 2007 -0700
+++ b/hgext/record.py	Mon Aug 06 12:53:49 2007 -0700
@@ -327,8 +327,8 @@
         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: