##// 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 327 try:
328 328 os.mkdir(backupdir)
329 329 except OSError, err:
330 if err.errno == errno.EEXIST:
331 pass
330 if err.errno != errno.EEXIST:
331 raise
332 332 try:
333 333 for f in newfiles:
334 334 if f not in modified:
General Comments 0
You need to be logged in to leave comments. Login now