##// END OF EJS Templates
fixed issue with web-editor that didn't preserve executable bit...
marcink -
r3837:68331e68 default
parent child Browse files
Show More
@@ -420,6 +420,7 b' class FileNode(Node):'
420 """Returns filenode extension"""
420 """Returns filenode extension"""
421 return self.name.split('.')[-1]
421 return self.name.split('.')[-1]
422
422
423 @property
423 def is_executable(self):
424 def is_executable(self):
424 """
425 """
425 Returns ``True`` if file has executable flag turned on.
426 Returns ``True`` if file has executable flag turned on.
@@ -496,9 +496,9 b' class ScmModel(BaseModel):'
496 # proper backend should then translate that into required type
496 # proper backend should then translate that into required type
497 message = safe_unicode(message)
497 message = safe_unicode(message)
498 author = safe_unicode(author)
498 author = safe_unicode(author)
499 m = IMC(repo)
499 imc = IMC(repo)
500 m.change(FileNode(path, content))
500 imc.change(FileNode(path, content, mode=cs.get_file_mode(f_path)))
501 tip = m.commit(message=message,
501 tip = imc.commit(message=message,
502 author=author,
502 author=author,
503 parents=[cs], branch=cs.branch)
503 parents=[cs], branch=cs.branch)
504
504
General Comments 0
You need to be logged in to leave comments. Login now