import sys, stat, time, math
from bup import hashsplit, git, options, index, client
from bup.helpers import *
-from bup.hashsplit import GIT_MODE_TREE, GIT_MODE_FILE
+from bup.hashsplit import GIT_MODE_TREE, GIT_MODE_FILE, GIT_MODE_SYMLINK
optspec = """
add_error(e)
lastskip_name = ent.name
else:
- (mode, id) = ('120000', w.new_blob(rl))
+ (mode, id) = (GIT_MODE_SYMLINK, w.new_blob(rl))
else:
add_error(Exception('skipping special file "%s"' % ent.name))
lastskip_name = ent.name
GIT_MODE_FILE = 0100644
GIT_MODE_TREE = 040000
+GIT_MODE_SYMLINK = 0120000
assert(GIT_MODE_TREE != 40000) # 0xxx should be treated as octal
# The purpose of this type of buffer is to avoid copying on peek(), get(),