示例#1
0
文件: review.py 项目: Tigge/critic
 def fromArgument(db, argument):
     try:
         return Review.fromId(db, int(argument))
     except:
         from dbutils import Branch
         branch = Branch.fromName(db, str(argument))
         if not branch: return None
         return Review.fromBranch(db, branch)
示例#2
0
 def fromArgument(db, argument):
     try:
         return Review.fromId(db, int(argument))
     except:
         from dbutils import Branch
         branch = Branch.fromName(db, str(argument))
         if not branch: return None
         return Review.fromBranch(db, branch)
示例#3
0
文件: review.py 项目: Tigge/critic
 def fromName(db, repository, name):
     from dbutils import Branch
     return Review.fromBranch(db, Branch.fromName(db, repository, name))
示例#4
0
 def fromName(db, repository, name):
     from dbutils import Branch
     return Review.fromBranch(db, Branch.fromName(db, repository, name))