Show More
@@ -740,6 +740,7 b' class svn_sink(converter_sink, commandli' | |||||
740 | self.opener = util.opener(self.wc) |
|
740 | self.opener = util.opener(self.wc) | |
741 | self.wopener = util.opener(self.wc) |
|
741 | self.wopener = util.opener(self.wc) | |
742 | self.childmap = mapfile(ui, self.join('hg-childmap')) |
|
742 | self.childmap = mapfile(ui, self.join('hg-childmap')) | |
|
743 | self.is_exec = util.checkexec(self.wc) and util.is_exec or None | |||
743 |
|
744 | |||
744 | if created: |
|
745 | if created: | |
745 | hook = os.path.join(created, 'hooks', 'pre-revprop-change') |
|
746 | hook = os.path.join(created, 'hooks', 'pre-revprop-change') | |
@@ -761,7 +762,15 b' class svn_sink(converter_sink, commandli' | |||||
761 | except OSError: |
|
762 | except OSError: | |
762 | pass |
|
763 | pass | |
763 | self.wopener(filename, 'w').write(data) |
|
764 | self.wopener(filename, 'w').write(data) | |
764 | was_exec = util.is_exec(self.wjoin(filename)) |
|
765 | ||
|
766 | if self.is_exec: | |||
|
767 | was_exec = self.is_exec(self.wjoin(filename)) | |||
|
768 | else: | |||
|
769 | # On filesystems not supporting execute-bit, there is no way | |||
|
770 | # to know if it is set but asking subversion. Setting it | |||
|
771 | # systematically is just as expensive and much simpler. | |||
|
772 | was_exec = 'x' not in flags | |||
|
773 | ||||
765 | util.set_exec(self.wjoin(filename), 'x' in flags) |
|
774 | util.set_exec(self.wjoin(filename), 'x' in flags) | |
766 | if was_exec: |
|
775 | if was_exec: | |
767 | if 'x' not in flags: |
|
776 | if 'x' not in flags: |
General Comments 0
You need to be logged in to leave comments.
Login now