Changeset 67 in tailor


Ignore:
Timestamp:
07/09/04 00:07:55 (9 years ago)
Author:
lele@…
Hash name:
20040708220755-97f81-c008722cf02e8442199cd2e30a2e3fe8bdc473ab
Message:

Use a safer way to extract the revision from the uri
At bootstrap, an upstream URI may be of the form:

:pserver:anonymous@cvs.sourceforge.net:/cvsroot/

so simply splitting on '@' to get the revision is not right. Now
it takes the last '@' in the URI: even if far from perfect, this
solution allows at least

:pserver:anonymous@cvs.sourceforge.net:/cvsroot/@HEAD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/tailor.py

    r59 r67  
    255255        if options.bootstrap: 
    256256            if uri and '@' in uri: 
    257                 uri, rev = uri.split('@') 
     257                last = uri.rindex('@') 
     258                rev = uri[last+1:] 
     259                uri = uri[:last] 
    258260            else: 
    259261                rev = 'HEAD' 
Note: See TracChangeset for help on using the changeset viewer.