/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/pack.py

  • Committer: Matt Giuca
  • Date: 2011-11-20 01:50:38 UTC
  • mto: This revision was merged to the branch mainline in revision 6282.
  • Revision ID: matt.giuca@gmail.com-20111120015038-mln5c1in153786le
bzrlib.timestamp: Better error message if the string is missing a timezone offset.
If it is a valid time stamp but without an offset, the error message specifically mentions that that is the problem.
This gives better feedback when using --commit-time.

Show diffs side-by-side

added added

removed removed

Lines of Context:
333
333
                # risk that the same unicode string has been encoded two
334
334
                # different ways.
335
335
                if name_tuple in all_names:
336
 
                    raise errors.DuplicateRecordNameError(name_tuple)
 
336
                    raise errors.DuplicateRecordNameError(name_tuple[0])
337
337
                all_names.add(name_tuple)
338
338
        excess_bytes = self.reader_func(1)
339
339
        if excess_bytes != '':