Minor cleanup in cvsdb module
* lib/cvsdb.py (Commit.SetBranch) shorten this code (CheckinDatabaseQuery.AddCommit, CheckinDatabaseQuery.SetCommitCB): remove unused callback functionality git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@955 8cb11bc2-c004-0410-86c3-e597b4017df7remotes/tags/1.0.0-rc1
parent
31410c3272
commit
5687f191f3
10
lib/cvsdb.py
10
lib/cvsdb.py
|
@ -509,10 +509,7 @@ class Commit:
|
|||
return self.__author
|
||||
|
||||
def SetBranch(self, branch):
|
||||
if not branch:
|
||||
self.__branch = ''
|
||||
else:
|
||||
self.__branch = branch
|
||||
self.__branch = branch or ''
|
||||
|
||||
def GetBranch(self):
|
||||
return self.__branch
|
||||
|
@ -625,11 +622,6 @@ class CheckinDatabaseQuery:
|
|||
|
||||
def AddCommit(self, commit):
|
||||
self.commit_list.append(commit)
|
||||
if self.commit_cb:
|
||||
self.commit_cb(commit)
|
||||
|
||||
def SetCommitCB(self, callback):
|
||||
self.commit_cb = callback
|
||||
|
||||
|
||||
##
|
||||
|
|
Loading…
Reference in New Issue