~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Martin Pool
  • Date: 2005-04-15 02:50:53 UTC
  • Revision ID: mbp@sourcefrog.net-20050415025053-645d8aae1d4debed
- gen_file_id: break the file on either / or \ when looking
  for a safe prefix of the name

Show diffs side-by-side

added added

removed removed

Lines of Context:
1004
1004
    idx = name.rfind('/')
1005
1005
    if idx != -1:
1006
1006
        name = name[idx+1 : ]
 
1007
    idx = name.rfind('\\')
 
1008
    if idx != -1:
 
1009
        name = name[idx+1 : ]
1007
1010
 
1008
1011
    name = name.lstrip('.')
1009
1012