revert does not preserve executable bit
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
High
|
Aaron Bentley |
Bug Description
Revert doesn't care about the executable bit, and can even inadvertently strip it off.
TO REPRODUCE:
jdong@jdong-
jdong@jdong-
jdong@jdong-
jdong@jdong-
jdong@jdong-
added a
added a
Committed revision 1.
jdong@jdong-
-rwxr-xr-x 1 jdong jdong 2 2006-12-06 15:32 a
jdong@jdong-
So, a branch with a single file (executable) named a. Now, here's where the bug takes place:
jdong@jdong-
jdong@jdong-
-rwxr-xr-x 1 jdong jdong 2 2006-12-06 15:33 a
jdong@jdong-
modified:
a
jdong@jdong-
jdong@jdong-
total 20
drwxr-xr-x 3 jdong jdong 4096 2006-12-06 15:34 .
drwxrwxrwt 11 root root 4096 2006-12-06 15:32 ..
-rw-r--r-- 1 jdong jdong 2 2006-12-06 15:34 a
-rwxr-xr-x 1 jdong jdong 2 2006-12-06 15:33 a.~1~
drwxr-xr-x 6 jdong jdong 4096 2006-12-06 15:32 .bzr
jdong@jdong-
modified:
a*
jdong@jdong-
jdong@jdong-
modified:
a*
After changing a then running a revert, the executable bit disappears from a. Further reverts do not fix it.
This is on Linux with the latest bzr.dev, btw.