~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to fai/__init__.py

  • Committer: Robert Collins
  • Date: 2005-09-14 11:54:06 UTC
  • mto: (147.2.6) (364.1.3 bzrtools)
  • mto: This revision was merged to the branch mainline in revision 324.
  • Revision ID: robertc@robertcollins.net-20050914115404-1be9392808a7647b
be consistent about pybaz vs arch naming in the fai derived code

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
#    along with this program; if not, write to the Free Software
16
16
#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
17
 
18
 
import pybaz as arch
 
18
import pybaz
19
19
from pybaz.backends.baz import sequence_cmd
20
20
import re
21
21
 
26
26
    """Get a list of direct merges, from a list of direct and indirect
27
27
    
28
28
    :param merges: Iterator of merge patchlogs
29
 
    :type merges: iter of `arch.Patchlog`
 
29
    :type merges: iter of `pybaz.Patchlog`
30
30
    :return: The direct merges
31
 
    :rtype: list of `arch.Patchlog`
 
31
    :rtype: list of `pybaz.Patchlog`
32
32
    """
33
33
    indirect = []
34
34
    direct = []
92
92
    :param reverse: If true, list backwards, from newest to oldest
93
93
    :type reverse: bool
94
94
    :return: An iterator for new revision logs in this tree
95
 
    :rtype: Iterator of `arch.Patchlog`
 
95
    :rtype: Iterator of `pybaz.Patchlog`
96
96
    """
97
 
    assert (isinstance(version, arch.Version))
 
97
    assert (isinstance(version, pybaz.Version))
98
98
    for line in _iter_new_merges(tree, version.fullname, reverse):
99
 
        yield arch.Patchlog(line, tree)
 
99
        yield pybaz.Patchlog(line, tree)
100
100
 
101
101
def _iter_new_merges(directory, version, reverse):
102
102
    """List patchlogs that are new in this tree since the last commit.