~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/urlutils.py

  • Committer: Aaron Bentley
  • Date: 2006-06-17 18:44:05 UTC
  • mfrom: (1786 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1788.
  • Revision ID: aaron.bentley@utoronto.ca-20060617184405-ba00b55631c7da57
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
    if m:
117
117
        scheme = m.group('scheme')
118
118
        path = m.group('path').split('/')
 
119
        if path[-1:] == ['']:
 
120
            # Strip off a trailing slash
 
121
            # This helps both when we are at the root, and when
 
122
            # 'base' has an extra slash at the end
 
123
            path = path[:-1]
119
124
    else:
120
125
        path = base.split('/')
121
126