~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_testament.py

  • Committer: John Arbash Meinel
  • Date: 2008-10-30 00:55:00 UTC
  • mto: (3815.2.5 prepare-1.9)
  • mto: This revision was merged to the branch mainline in revision 3811.
  • Revision ID: john@arbash-meinel.com-20081030005500-r5cej1cxflqhs3io
Switch so that we are using a simple timestamp as the first action.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
# TODO: Testaments with x-bits
20
20
 
21
21
import os
22
 
from sha import sha
23
22
 
 
23
from bzrlib import osutils
24
24
from bzrlib.tests import SymlinkFeature, TestCaseWithTransport
25
25
from bzrlib.testament import Testament, StrictTestament, StrictTestament3
26
26
from bzrlib.transform import TreeTransform
211
211
bazaar-ng testament short form 1
212
212
revision-id: test@user-1
213
213
sha1: %s
214
 
""" % sha(REV_1_TESTAMENT).hexdigest()
 
214
""" % osutils.sha(REV_1_TESTAMENT).hexdigest()
215
215
 
216
216
 
217
217
REV_1_SHORT_STRICT = """\
218
218
bazaar-ng testament short form 2.1
219
219
revision-id: test@user-1
220
220
sha1: %s
221
 
""" % sha(REV_1_STRICT_TESTAMENT).hexdigest()
 
221
""" % osutils.sha(REV_1_STRICT_TESTAMENT).hexdigest()
222
222
 
223
223
 
224
224
REV_1_SHORT_STRICT3 = """\
225
225
bazaar testament short form 3 strict
226
226
revision-id: test@user-1
227
227
sha1: %s
228
 
""" % sha(REV_1_STRICT_TESTAMENT3).hexdigest()
 
228
""" % osutils.sha(REV_1_STRICT_TESTAMENT3).hexdigest()
229
229
 
230
230
 
231
231
REV_2_TESTAMENT = """\
293
293
bazaar-ng testament short form 1
294
294
revision-id: test@user-2
295
295
sha1: %s
296
 
""" % sha(REV_2_TESTAMENT).hexdigest()
 
296
""" % osutils.sha(REV_2_TESTAMENT).hexdigest()
297
297
 
298
298
 
299
299
REV_2_SHORT_STRICT = """\
300
300
bazaar-ng testament short form 2.1
301
301
revision-id: test@user-2
302
302
sha1: %s
303
 
""" % sha(REV_2_STRICT_TESTAMENT).hexdigest()
 
303
""" % osutils.sha(REV_2_STRICT_TESTAMENT).hexdigest()
304
304
 
305
305
 
306
306
REV_2_SHORT_STRICT3 = """\
307
307
bazaar testament short form 3 strict
308
308
revision-id: test@user-2
309
309
sha1: %s
310
 
""" % sha(REV_2_STRICT_TESTAMENT3).hexdigest()
 
310
""" % osutils.sha(REV_2_STRICT_TESTAMENT3).hexdigest()
311
311
 
312
312
 
313
313
REV_PROPS_TESTAMENT = """\