/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/_dirstate_helpers_py.py

  • Committer: Andrew Bennetts
  • Date: 2007-10-12 05:26:46 UTC
  • mfrom: (2904 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2906.
  • Revision ID: andrew.bennetts@canonical.com-20071012052646-wl95idld3ijjy714
Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
 
145
145
    :param path1: first path
146
146
    :param path2: second path
147
 
    :return: positive number if ``path1`` comes first,
 
147
    :return: negative number if ``path1`` comes first,
148
148
        0 if paths are equal,
149
 
        and negative number if ``path2`` sorts first
 
149
        and positive number if ``path2`` sorts first
150
150
    """
151
151
    if not isinstance(path1, str):
152
152
        raise TypeError("'path1' must be a plain string, not %s: %r"
166
166
 
167
167
    :param path1: first path
168
168
    :param path2: the second path
169
 
    :return: positive number if ``path1`` comes first,
 
169
    :return: negative number if ``path1`` comes first,
170
170
        0 if paths are equal
171
 
        and a negative number if ``path2`` sorts first
 
171
        and a positive number if ``path2`` sorts first
172
172
    """
173
173
    if not isinstance(path1, str):
174
174
        raise TypeError("'path1' must be a plain string, not %s: %r"