~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to convertfile.py

  • Committer: Martin Pool
  • Date: 2005-07-01 03:37:15 UTC
  • mto: This revision was merged to the branch mainline in revision 852.
  • Revision ID: mbp@sourcefrog.net-20050701033715-2b48f34268defb5a
Use proper relative path when converting a file from bzr

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
    wf = Weave()
35
35
 
36
 
    b = bzrlib.branch.find_branch('.')
 
36
    toconvert = sys.argv[1]
 
37
    
 
38
    b = bzrlib.branch.find_branch(toconvert)
 
39
    rp = b.relpath(toconvert)
37
40
 
38
41
    print 'converting...'
39
42
 
40
 
    fid = b.read_working_inventory().path2id(sys.argv[1])
 
43
    fid = b.read_working_inventory().path2id(rp)
41
44
 
42
45
    last_lines = None
43
46
    parents = set()