tag_file = git.repo('refs/tags/%s' % opt.delete)
debug1("tag file: %s\n" % tag_file)
if not os.path.exists(tag_file):
- log("bup: error: tag '%s' not found." % opt.delete)
+ log("bup: error: tag '%s' not found.\n" % opt.delete)
sys.exit(1)
try:
debug1("args: tag name = %s; commit = %s\n" % (tag_name, commit))
if tag_name in tags:
- log("bup: error: tag '%s' already exists" % tag_name)
+ log("bup: error: tag '%s' already exists\n" % tag_name)
sys.exit(1)
if tag_name.startswith('.'):
sys.exit(2)
if not hash:
- log("bup: error: commit %s not found." % commit)
+ log("bup: error: commit %s not found.\n" % commit)
sys.exit(2)
pL = git.PackIdxList(git.repo('objects/pack'))
if not pL.exists(hash):
- log("bup: error: commit %s not found." % commit)
+ log("bup: error: commit %s not found.\n" % commit)
sys.exit(2)
tag_file = git.repo('refs/tags/%s' % tag_name)
for exclude_path in f.readlines():
excluded_paths.append(realpath(exclude_path.strip()))
except Error, e:
- log("warning: couldn't read %s" % parameter)
+ log("warning: couldn't read %s\n" % parameter)
finally:
f.close()
if parent and not os.path.exists(parent):
raise GitError('parent directory "%s" does not exist\n' % parent)
if os.path.exists(d) and not os.path.isdir(os.path.join(d, '.')):
- raise GitError('"%d" exists but is not a directory\n' % d)
+ raise GitError('"%s" exists but is not a directory\n' % d)
p = subprocess.Popen(['git', '--bare', 'init'], stdout=sys.stderr,
preexec_fn = _gitenv)
_git_wait('git init', p)
assert(self.p)
assert(self.p.poll() == None)
if self.inprogress:
- log('_fast_get: opening %r while %r is open'
+ log('_fast_get: opening %r while %r is open\n'
% (id, self.inprogress))
assert(not self.inprogress)
assert(id.find('\n') < 0)
if f:
b = f.read(len(INDEX_HDR))
if b != INDEX_HDR:
- log('warning: %s: header: expected %r, got %r'
+ log('warning: %s: header: expected %r, got %r\n'
% (filename, INDEX_HDR, b))
else:
st = os.fstat(f.fileno())