sticky/source.py
def inject_sticky_info(self):
        """
        Merge head and tail with the old info.
        """
        head, old_info = build_head_info(self.head, self.marker_a, self.marker_z)
        rev = old_info.get('rev', 'v0')
        hash = hash_text(self.tail, self.hash_len)
        if hash != old_info.get('hash'):
            rev = increment_rev(rev)
        info = {
            'rev': rev,
            'hash': hash,
            'start': self.marker_a,
            'finis': self.marker_z,
        }
        icky = self.head_tmpl.format(**info)
        return head.rstrip() + icky + self.tail.lstrip()

        Merge head and tail with the old info.
        
Merge head and tail with the old info.
Merge head and tail with the old info .
def inject_sticky_info(self):
        head, old_info = build_head_info(self.head, self.marker_a, self.marker_z)
        rev = old_info.get('rev', 'v0')
        hash = hash_text(self.tail, self.hash_len)
        if hash != old_info.get('hash'):
            rev = increment_rev(rev)
        info = {
            'rev': rev,
            'hash': hash,
            'start': self.marker_a,
            'finis': self.marker_z,
        }
        icky = self.head_tmpl.format(**info)
        return head.rstrip() + icky + self.tail.lstrip()
def inject_sticky_info ( self ) : head , old_info = build_head_info ( self . head , self . marker_a , self . marker_z ) rev = old_info . get ( 'rev' , 'v0' ) hash = hash_text ( self . tail , self . hash_len ) if hash != old_info . get ( 'hash' ) : rev = increment_rev ( rev ) info = { 'rev' : rev , 'hash' : hash , 'start' : self . marker_a , 'finis' : self . marker_z , } icky = self . head_tmpl . format ( ** info ) return head . rstrip ( ) + icky + self . tail . lstrip ( )
Merge head and tail with the old info.
Merge head and tail with the old info .
"""
        Merge head and tail with the old info.
        """
self