~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/inventory.py

  • Committer: Martin Pool
  • Date: 2005-08-18 05:22:01 UTC
  • Revision ID: mbp@sourcefrog.net-20050818052201-54c5e07b377e2af8
- don't store redundant version number at end of insert blocks

This introduces a new weavefile version (v4); the code can't read old ones.

Show diffs side-by-side

added added

removed removed

Lines of Context:
644
644
 
645
645
 
646
646
 
647
 
_NAME_RE = None
 
647
_NAME_RE = re.compile(r'^[^/\\]+$')
648
648
 
649
649
def is_valid_name(name):
650
 
    global _NAME_RE
651
 
    if _NAME_RE == None:
652
 
        _NAME_RE = re.compile(r'^[^/\\]+$')
653
 
        
654
650
    return bool(_NAME_RE.match(name))