~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_info.py

  • Committer: Mark Hammond
  • Date: 2008-08-10 11:16:39 UTC
  • mto: (3606.5.3 1.6)
  • mto: This revision was merged to the branch mainline in revision 3626.
  • Revision ID: mhammond@skippinet.com.au-20080810111639-9upz1wig1s8lvz62
install all files with 'restartreplace uninsrestartdelete' and close
tbzrcache at uninstall time.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
#
13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
17
17
import sys
18
18
from urllib import quote
146
146
            expected = None
147
147
            if key in ('dirstate', 'dirstate-tags', 'dirstate-with-subtree',
148
148
                'pack-0.92', 'pack-0.92-subtree', 'rich-root',
149
 
                'rich-root-pack', '1.6', '1.6.1-rich-root',
150
 
                '1.9', '1.9-rich-root'):
151
 
                expected = '1.6 or 1.6.1-rich-root or ' \
152
 
                    '1.9 or 1.9-rich-root or ' \
 
149
                'rich-root-pack', '1.6', '1.6-rich-root'):
 
150
                expected = '1.6 or 1.6-rich-root or ' \
153
151
                    'dirstate or dirstate-tags or pack-0.92 or'\
154
152
                    ' rich-root or rich-root-pack'
155
 
            elif key in ('knit', 'metaweave'):
 
153
            if key in ('knit', 'metaweave'):
156
154
                expected = 'knit or metaweave'
157
 
            elif key in ('1.14', '1.14-rich-root'):
158
 
                expected = '1.14 or 1.14-rich-root'
159
155
            self.assertCheckoutDescription(key, expected)
160
156
 
161
157
    def test_describe_branch_format(self):
162
158
        for key in bzrdir.format_registry.keys():
163
159
            if key in bzrdir.format_registry.aliases():
164
160
                continue
165
 
            if bzrdir.format_registry.get_info(key).hidden:
166
 
                continue
167
161
            expected = None
168
162
            if key in ('dirstate', 'knit'):
169
163
                expected = 'dirstate or knit'
170
 
            elif key in ('1.9', '1.14'):
171
 
                expected = '1.14 or 1.9'
172
 
            elif key in ('1.9-rich-root', '1.14-rich-root'):
173
 
                expected = '1.14-rich-root or 1.9-rich-root'
174
164
            self.assertBranchDescription(key, expected)
175
165
 
176
166
    def test_describe_repo_format(self):
177
167
        for key in bzrdir.format_registry.keys():
178
168
            if key in bzrdir.format_registry.aliases():
179
169
                continue
180
 
            if bzrdir.format_registry.get_info(key).hidden:
181
 
                continue
182
170
            expected = None
183
171
            if key in ('dirstate', 'knit', 'dirstate-tags'):
184
172
                expected = 'dirstate or dirstate-tags or knit'
185
 
            elif key in ('1.9', '1.14'):
186
 
                expected = '1.14 or 1.9'
187
 
            elif key in ('1.9-rich-root', '1.14-rich-root'):
188
 
                expected = '1.14-rich-root or 1.9-rich-root'
189
173
            self.assertRepoDescription(key, expected)
190
174
 
191
175
        format = bzrdir.format_registry.make_bzrdir('metaweave')