Show More
@@ -418,6 +418,7 b' class FileNode(Node):' | |||||
418 | """Returns filenode extension""" |
|
418 | """Returns filenode extension""" | |
419 | return self.name.split('.')[-1] |
|
419 | return self.name.split('.')[-1] | |
420 |
|
420 | |||
|
421 | @property | |||
421 | def is_executable(self): |
|
422 | def is_executable(self): | |
422 | """ |
|
423 | """ | |
423 | Returns ``True`` if file has executable flag turned on. |
|
424 | Returns ``True`` if file has executable flag turned on. |
@@ -517,9 +517,9 b' class ScmModel(BaseModel):' | |||||
517 | # proper backend should then translate that into required type |
|
517 | # proper backend should then translate that into required type | |
518 | message = safe_unicode(message) |
|
518 | message = safe_unicode(message) | |
519 | author = safe_unicode(author) |
|
519 | author = safe_unicode(author) | |
520 | m = IMC(repo) |
|
520 | imc = IMC(repo) | |
521 | m.change(FileNode(path, content)) |
|
521 | imc.change(FileNode(path, content, mode=cs.get_file_mode(f_path))) | |
522 | tip = m.commit(message=message, |
|
522 | tip = imc.commit(message=message, | |
523 | author=author, |
|
523 | author=author, | |
524 | parents=[cs], branch=cs.branch) |
|
524 | parents=[cs], branch=cs.branch) | |
525 |
|
525 |
General Comments 0
You need to be logged in to leave comments.
Login now