~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_testament.py

  • Committer: Jelmer Vernooij
  • Date: 2011-05-11 14:26:41 UTC
  • mto: This revision was merged to the branch mainline in revision 5852.
  • Revision ID: jelmer@samba.org-20110511142641-wbx6svyykkgtq24u
Use osutils.sha_string() when possible.

Show diffs side-by-side

added added

removed removed

Lines of Context:
223
223
bazaar-ng testament short form 1
224
224
revision-id: test@user-1
225
225
sha1: %s
226
 
""" % osutils.sha(REV_1_TESTAMENT).hexdigest()
 
226
""" % osutils.sha_string(REV_1_TESTAMENT)
227
227
 
228
228
 
229
229
REV_1_SHORT_STRICT = """\
230
230
bazaar-ng testament short form 2.1
231
231
revision-id: test@user-1
232
232
sha1: %s
233
 
""" % osutils.sha(REV_1_STRICT_TESTAMENT).hexdigest()
 
233
""" % osutils.sha_string(REV_1_STRICT_TESTAMENT)
234
234
 
235
235
 
236
236
REV_1_SHORT_STRICT3 = """\
237
237
bazaar testament short form 3 strict
238
238
revision-id: test@user-1
239
239
sha1: %s
240
 
""" % osutils.sha(REV_1_STRICT_TESTAMENT3).hexdigest()
 
240
""" % osutils.sha_string(REV_1_STRICT_TESTAMENT3)
241
241
 
242
242
 
243
243
REV_2_TESTAMENT = """\
305
305
bazaar-ng testament short form 1
306
306
revision-id: test@user-2
307
307
sha1: %s
308
 
""" % osutils.sha(REV_2_TESTAMENT).hexdigest()
 
308
""" % osutils.sha_string(REV_2_TESTAMENT)
309
309
 
310
310
 
311
311
REV_2_SHORT_STRICT = """\
312
312
bazaar-ng testament short form 2.1
313
313
revision-id: test@user-2
314
314
sha1: %s
315
 
""" % osutils.sha(REV_2_STRICT_TESTAMENT).hexdigest()
 
315
""" % osutils.sha_string(REV_2_STRICT_TESTAMENT)
316
316
 
317
317
 
318
318
REV_2_SHORT_STRICT3 = """\
319
319
bazaar testament short form 3 strict
320
320
revision-id: test@user-2
321
321
sha1: %s
322
 
""" % osutils.sha(REV_2_STRICT_TESTAMENT3).hexdigest()
 
322
""" % osutils.sha_string(REV_2_STRICT_TESTAMENT3)
323
323
 
324
324
 
325
325
REV_PROPS_TESTAMENT = """\