/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/transform.py

  • Committer: Jelmer Vernooij
  • Date: 2017-02-05 17:00:29 UTC
  • mto: (6621.2.1 py3)
  • mto: This revision was merged to the branch mainline in revision 6624.
  • Revision ID: jelmer@jelmer.uk-20170205170029-s01xdro0hkixhq3r
Convert some octal numbers to new notations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
768
768
            if new_executability:
769
769
                umask = os.umask(0)
770
770
                os.umask(umask)
771
 
                to_mode = current_mode | (0100 & ~umask)
 
771
                to_mode = current_mode | (0o100 & ~umask)
772
772
                # Enable x-bit for others only if they can read it.
773
 
                if current_mode & 0004:
774
 
                    to_mode |= 0001 & ~umask
775
 
                if current_mode & 0040:
776
 
                    to_mode |= 0010 & ~umask
 
773
                if current_mode & 0o004:
 
774
                    to_mode |= 0o001 & ~umask
 
775
                if current_mode & 0o040:
 
776
                    to_mode |= 0o010 & ~umask
777
777
            else:
778
 
                to_mode = current_mode & ~0111
 
778
                to_mode = current_mode & ~0o111
779
779
            osutils.chmod_if_possible(abspath, to_mode)
780
780
 
781
781
    def _new_entry(self, name, parent_id, file_id):