/breezy/3.0

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/3.0

« back to all changes in this revision

Viewing changes to breezy/plugins/fastimport/tests/test_commands.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-05-07 12:03:11 UTC
  • mfrom: (6929.13.6 fast-import-cmds)
  • Revision ID: breezy.the.bot@gmail.com-20180507120311-x2v52qsrqj93zi52
Remove the fast-import-{query,info,filter} commands.

Merged from https://code.launchpad.net/~jelmer/brz/fast-import-cmds/+merge/342461

Show diffs side-by-side

added added

removed removed

Lines of Context:
196
196
 
197
197
"""
198
198
 
199
 
class TestFastImportInfo(ExternalBase):
200
 
 
201
 
    _test_needs_features = [FastimportFeature]
202
 
 
203
 
    def test_simple(self):
204
 
        self.build_tree_contents([('simple.fi', simple_fast_import_stream)])
205
 
        output = self.run_bzr("fast-import-info simple.fi")[0]
206
 
        self.assertEquals(output, """Command counts:
207
 
\t0\tblob
208
 
\t0\tcheckpoint
209
 
\t1\tcommit
210
 
\t0\tfeature
211
 
\t0\tprogress
212
 
\t0\treset
213
 
\t0\ttag
214
 
File command counts:
215
 
\t0\tfilemodify
216
 
\t0\tfiledelete
217
 
\t0\tfilecopy
218
 
\t0\tfilerename
219
 
\t0\tfiledeleteall
220
 
Parent counts:
221
 
\t1\tparents-0
222
 
\t0\ttotal revisions merged
223
 
Commit analysis:
224
 
\tno\texecutables
225
 
\tno\tseparate authors found
226
 
\tno\tsymlinks
227
 
\tno\tblobs referenced by SHA
228
 
Head analysis:
229
 
\t[':1']\trefs/heads/master
230
 
Merges:
231
 
""")
232
 
 
233
199
 
234
200
class TestFastImport(ExternalBase):
235
201
 
256
222
        self.make_branch_and_tree("br")
257
223
        self.run_bzr_error(['brz: ERROR: 4: Parse error: line 4: Command commit is missing section committer\n'], "fast-import empty.fi br")
258
224
 
259
 
 
260
 
class TestFastImportFilter(ExternalBase):
261
 
 
262
 
    _test_needs_features = [FastimportFeature]
263
 
 
264
 
    def test_empty(self):
265
 
        self.build_tree_contents([('empty.fi', b"")])
266
 
        self.make_branch_and_tree("br")
267
 
        self.assertEquals("", self.run_bzr("fast-import-filter -")[0])
268
 
 
269
 
    def test_default_stdin(self):
270
 
        self.build_tree_contents([('empty.fi', b"")])
271
 
        self.make_branch_and_tree("br")
272
 
        self.assertEquals("", self.run_bzr("fast-import-filter")[0])