81 @param repodir directory name of the repository (string) |
81 @param repodir directory name of the repository (string) |
82 @param listType type of patches list to get |
82 @param listType type of patches list to get |
83 (Queues.APPLIED_LIST, Queues.UNAPPLIED_LIST, Queues.SERIES_LIST) |
83 (Queues.APPLIED_LIST, Queues.UNAPPLIED_LIST, Queues.SERIES_LIST) |
84 @param withSummary flag indicating to get a summary as well (boolean) |
84 @param withSummary flag indicating to get a summary as well (boolean) |
85 @return list of patches (list of string) |
85 @return list of patches (list of string) |
|
86 @exception ValueError raised to indicate an invalid patch list type |
86 """ |
87 """ |
87 patchesList = [] |
88 patchesList = [] |
88 |
89 |
89 args = [] |
90 args = [] |
90 if listType == Queues.APPLIED_LIST: |
91 if listType == Queues.APPLIED_LIST: |
355 @keyparam all flag indicating to push/pop all (boolean) |
356 @keyparam all flag indicating to push/pop all (boolean) |
356 @keyparam named flag indicating to push/pop until a named patch |
357 @keyparam named flag indicating to push/pop until a named patch |
357 is at the top of the stack (boolean) |
358 is at the top of the stack (boolean) |
358 @keyparam force flag indicating a forceful pop (boolean) |
359 @keyparam force flag indicating a forceful pop (boolean) |
359 @return flag indicating that the project should be reread (boolean) |
360 @return flag indicating that the project should be reread (boolean) |
|
361 @exception ValueError raised to indicate an invalid operation |
360 """ |
362 """ |
361 # find the root of the repo |
363 # find the root of the repo |
362 repodir = self.vcs.splitPath(name)[0] |
364 repodir = self.vcs.splitPath(name)[0] |
363 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): |
365 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): |
364 repodir = os.path.dirname(repodir) |
366 repodir = os.path.dirname(repodir) |
809 remove the patch directory or set the active queue. |
811 remove the patch directory or set the active queue. |
810 |
812 |
811 @param name file/directory name (string) |
813 @param name file/directory name (string) |
812 @param operation operation to be performed (Queues.QUEUE_DELETE, |
814 @param operation operation to be performed (Queues.QUEUE_DELETE, |
813 Queues.QUEUE_PURGE, Queues.QUEUE_ACTIVATE) |
815 Queues.QUEUE_PURGE, Queues.QUEUE_ACTIVATE) |
|
816 @exception ValueError raised to indicate an invalid operation |
814 """ |
817 """ |
815 # find the root of the repo |
818 # find the root of the repo |
816 repodir = self.vcs.splitPath(name)[0] |
819 repodir = self.vcs.splitPath(name)[0] |
817 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): |
820 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): |
818 repodir = os.path.dirname(repodir) |
821 repodir = os.path.dirname(repodir) |