record: raise an exception correctly if we can't create a backup directory
authorBryan O'Sullivan <bos@serpentine.com>
Mon, 06 Aug 2007 12:53:49 -0700
changeset 5129 eca5b31cffc7
parent 5128 c9126c24e098
child 5130 462cc56d898f
record: raise an exception correctly if we can't create a backup directory
hgext/record.py
--- 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: