Fossil

Check-in [99004d57]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Reverting the change of [a5840849d0]. Use of 'preferedparent' is ok. The problem I attempted to fix is properly fixed by looking at the branch changesets as well during import, and by acknowledging that there can be branches which have no changesets committed to them.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:99004d57a3166340dc91db3c81f363a6a5003c67
User & Date: aku 2008-03-05 03:24:19
Context
2008-03-05
03:30
Remember #commits to a workspace (= lod), and also their parental relationship. This will be used to control branch tagging (add/cancel), and provides us with the proper names for the tags as well. check-in: 011fb38d user: aku tags: trunk
03:24
Reverting the change of [a5840849d0]. Use of 'preferedparent' is ok. The problem I attempted to fix is properly fixed by looking at the branch changesets as well during import, and by acknowledging that there can be branches which have no changesets committed to them. check-in: 99004d57 user: aku tags: trunk
2008-03-02
01:09
Changed the printing of the symbol tree to be based on table 'preferedparent', and introduced two procs to shorten the fomratting code. check-in: ae53becd user: aku tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to tools/cvs2fossil/lib/c2f_psym.tcl.

42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67

    method name {} { return $myname }
    method id   {} { return $myid   }

    method istrunk {} { return 0 }

    method parent {} {
	return [$myproject getsymbol [state one {
	    SELECT S.name
	    FROM tag T, symbol S
	    WHERE T.sid = $myid
	    AND   S.sid = T.lod
	UNION
	    SELECT S.name
	    FROM branch B, symbol S
	    WHERE B.sid = $myid
	    AND   S.sid = B.lod
	}]]
	return
    }

    # # ## ### ##### ######## #############
    ## Symbol type

    method determinetype {} {
	# This is done by a fixed heuristics, with guidance by the







|
|
|
|
|
<
<
<
<
<

<







42
43
44
45
46
47
48
49
50
51
52
53





54

55
56
57
58
59
60
61

    method name {} { return $myname }
    method id   {} { return $myid   }

    method istrunk {} { return 0 }

    method parent {} {
        return [$myproject getsymbol [state run {
 	    SELECT S.name
	    FROM preferedparent P, symbol S
	    WHERE P.sid = $myid
	    AND   S.sid = P.pid





	}]]

    }

    # # ## ### ##### ######## #############
    ## Symbol type

    method determinetype {} {
	# This is done by a fixed heuristics, with guidance by the