# to show as well, but we want to check if the branch / filename
# exists first, so we can give a separate error from other
# repository errors.
- sha = repo.rev_parse("%s:%s" % (branch, filename), quiet=True)
+ sha = repo.rev_parse("%s:%s" % (branch, filename))
except GitRepositoryError:
raise NoChangelogError, "Changelog %s not found in branch %s" % (filename, branch)
raise GitRepositoryError, "can't find tag for %s" % commit
return tag[0].strip()
- def rev_parse(self, name, quiet=False):
+ def rev_parse(self, name):
"find the SHA1"
- args = [ "--verify", name]
- if quiet:
- args.insert(0, "--quiet")
+ args = [ "--quiet", "--verify", name ]
sha, ret = self.__git_getoutput('rev-parse', args)
if ret:
raise GitRepositoryError, "revision '%s' not found" % name