/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 server.py

  • Committer: John Carr
  • Date: 2009-01-13 22:53:52 UTC
  • mto: (0.217.53 git-serve)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: john.carr@unrouted.co.uk-20090113225352-1pz3ytusl0n0vc00
Restore +x flag is file is executable

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
import os, tempfile
30
30
 
 
31
import stat
31
32
S_IFREG = 32768
32
33
S_IFLNK = 40960
33
34
S_IFDIR = 16384
192
193
 
193
194
            name = splitpath(path)[-1:][0].encode('UTF-8')
194
195
            mode = S_IFREG | 0655
 
196
            if mode & stat.S_IXUSR:
 
197
                mode |= 0100
195
198
            tree.add(mode, name, sha)
196
199
 
197
200
    while len(stack) > 1: