-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/bzrlib/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/bzrlib/generate_ids.pyc

ó
î:ïNc@@s›dZddlmZddlmZeeƒdƒddlmZejdƒZ	ejdƒZ
dada
d„Zd	„Zd
„Zdd„ZdS(
s0Common code for generating file or revision ids.i(tabsolute_import(tlazy_importsN
import time

from bzrlib import (
    config,
    errors,
    osutils,
    )
(t
lazy_regexs[^\w.]s	[^-\w.+@]cC@sOtdkr7dtjtjƒƒtjdƒfantd7atttƒS(s Create a new file id suffix that is reasonably unique.

    On the first call we combine the current time with 64 bits of randomness to
    give a highly probably globally unique number. Then each call in the same
    process adds 1 to a serial number we append to that unique value.
    s-%s-%s-iiN(t_gen_file_id_suffixtNonetosutilstcompact_datettimet
rand_charst_gen_file_id_serialtstr(((s7/usr/lib/python2.7/dist-packages/bzrlib/generate_ids.pyt_next_id_suffix,s

cC@s<ttjd|jƒƒƒ}|jdƒd }|tƒS(sfReturn new file id for the basename 'name'.

    The uniqueness is supplied from _next_id_suffix.
    tt.i(R
t_file_id_chars_retsubtlowertlstripR(tnametascii_word_onlyt
short_no_dots((s7/usr/lib/python2.7/dist-packages/bzrlib/generate_ids.pytgen_file_idDscC@s
tdƒS(sReturn a new tree-root file id.t	tree_root(R(((s7/usr/lib/python2.7/dist-packages/bzrlib/generate_ids.pytgen_root_idYscC@s¸ytj|ƒ}Wntjk
r/|}nX|jƒ}|jddƒ}tjd|ƒ}tj	dƒ}|dkrŠtjƒ}ndj|tj
|ƒ|fƒ}|jdƒS(s\Return new revision-id.

    :param username: The username of the committer, in the format returned by
        config.username().  This is typically a real name, followed by an
        email address. If found, we will use just the email address portion.
        Otherwise we flatten the real name, and use that.
    :return: A new revision id.
    t t_Riu-tutf8N(tconfigtextract_email_addressterrorstNoEmailInUsernameRtreplacet_rev_id_chars_reRRRRRtjoinRtencode(tusernamet	timestampt
user_or_emailtunique_chunktrev_id((s7/usr/lib/python2.7/dist-packages/bzrlib/generate_ids.pytgen_revision_id^s	
	N(t__doc__t
__future__Rtbzrlib.lazy_importRtglobalstbzrlibRtlazy_compileRR RRR	RRRR((((s7/usr/lib/python2.7/dist-packages/bzrlib/generate_ids.pyt<module>s				

Copyright © 2017 || Recoded By Mr.Bumblebee