##// END OF EJS Templates
record: when backing up, avoid generating very long filenames...
Kyle Lippincott -
r46308:9628d3cd default
parent child Browse files
Show More
@@ -558,7 +558,7 b' def dorecord('
558 # backup continues
558 # backup continues
559 for f in tobackup:
559 for f in tobackup:
560 fd, tmpname = pycompat.mkstemp(
560 fd, tmpname = pycompat.mkstemp(
561 prefix=f.replace(b'/', b'_') + b'.', dir=backupdir
561 prefix=os.path.basename(f) + b'.', dir=backupdir
562 )
562 )
563 os.close(fd)
563 os.close(fd)
564 ui.debug(b'backup %r as %r\n' % (f, tmpname))
564 ui.debug(b'backup %r as %r\n' % (f, tmpname))
General Comments 0
You need to be logged in to leave comments. Login now