##// END OF EJS Templates
record: raise an exception correctly if we can't create a backup directory
Bryan O'Sullivan -
r5129:eca5b31c default
parent child Browse files
Show More
@@ -327,8 +327,8 b' def record(ui, repo, *pats, **opts):'
327 try:
327 try:
328 os.mkdir(backupdir)
328 os.mkdir(backupdir)
329 except OSError, err:
329 except OSError, err:
330 if err.errno == errno.EEXIST:
330 if err.errno != errno.EEXIST:
331 pass
331 raise
332 try:
332 try:
333 for f in newfiles:
333 for f in newfiles:
334 if f not in modified:
334 if f not in modified:
General Comments 0
You need to be logged in to leave comments. Login now