cjprecord / editra-plugins

Automatically exported from code.google.com/p/editra-plugins
0 stars 0 forks source link

[projects] Bazaar status incorrect if execute bit has changed #100

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What Plugin does this relate to? What version of the Plugin?
Projects 0.9

What steps will reproduce the problem?
1. Change the execute bit of a file in the project using, for example,
chmod a+x filename
2. Modify and save the same file

What is the expected output? What do you see instead?
The modified file should appear in the project listing as modified.
It actually appears with an icon indicating that it is unmodified.

What version of Editra are you using? On what operating system?
0.4.65 on Linux - Kubuntu Intrepid

Please provide any additional information below.

This problem is caused by the fact that bzr adds a * to the status flag of
a file if the execute bit has changed so the status flag of the file will
be M* instead of M. This is not recognized as a valid status flag by the
status method of the BZR class. A quick fix is to add the following line to
the status method:

code = code.rstrip('*')

I've only just started using bzr so I don't know if this fix will cause
additional problems.

Original issue reported on code.google.com by idcoll...@gmail.com on 15 Mar 2009 at 3:18

GoogleCodeExporter commented 9 years ago
Applied thanks

Original comment by CodyPrec...@gmail.com on 15 Mar 2009 at 3:30