[Pkg-bazaar-commits] ./bzr/unstable r173: more random bytes in revision and file ids
mbp at sourcefrog.net
mbp at sourcefrog.net
Fri Apr 10 07:44:06 UTC 2009
------------------------------------------------------------
revno: 173
committer: mbp at sourcefrog.net
timestamp: Tue 2005-04-05 19:09:54 +1000
message:
more random bytes in revision and file ids
modified:
bzrlib/branch.py
-------------- next part --------------
=== modified file 'bzrlib/branch.py'
--- a/bzrlib/branch.py 2005-04-05 08:34:04 +0000
+++ b/bzrlib/branch.py 2005-04-05 09:09:54 +0000
@@ -898,7 +898,7 @@
def _gen_revision_id(when):
"""Return new revision-id."""
s = '%s-%s-' % (user_email(), compact_date(when))
- s += hexlify(rand_bytes(8))
+ s += hexlify(rand_bytes(12))
return s
@@ -914,7 +914,7 @@
name = name.lstrip('.')
- s = hexlify(rand_bytes(8))
+ s = hexlify(rand_bytes(12))
return '-'.join((name, compact_date(time.time()), s))
More information about the Pkg-bazaar-commits
mailing list