Fossil SCM

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.

aku 2008-03-05 03:24 trunk
Commit 99004d57a3166340dc91db3c81f363a6a5003c67
--- tools/cvs2fossil/lib/c2f_psym.tcl
+++ tools/cvs2fossil/lib/c2f_psym.tcl
@@ -44,22 +44,16 @@
4444
method id {} { return $myid }
4545
4646
method istrunk {} { return 0 }
4747
4848
method parent {} {
49
- return [$myproject getsymbol [state one {
50
- SELECT S.name
51
- FROM tag T, symbol S
52
- WHERE T.sid = $myid
53
- AND S.sid = T.lod
54
- UNION
55
- SELECT S.name
56
- FROM branch B, symbol S
57
- WHERE B.sid = $myid
58
- AND S.sid = B.lod
49
+ return [$myproject getsymbol [state run {
50
+ SELECT S.name
51
+ FROM preferedparent P, symbol S
52
+ WHERE P.sid = $myid
53
+ AND S.sid = P.pid
5954
}]]
60
- return
6155
}
6256
6357
# # ## ### ##### ######## #############
6458
## Symbol type
6559
6660
--- tools/cvs2fossil/lib/c2f_psym.tcl
+++ tools/cvs2fossil/lib/c2f_psym.tcl
@@ -44,22 +44,16 @@
44 method id {} { return $myid }
45
46 method istrunk {} { return 0 }
47
48 method parent {} {
49 return [$myproject getsymbol [state one {
50 SELECT S.name
51 FROM tag T, symbol S
52 WHERE T.sid = $myid
53 AND S.sid = T.lod
54 UNION
55 SELECT S.name
56 FROM branch B, symbol S
57 WHERE B.sid = $myid
58 AND S.sid = B.lod
59 }]]
60 return
61 }
62
63 # # ## ### ##### ######## #############
64 ## Symbol type
65
66
--- tools/cvs2fossil/lib/c2f_psym.tcl
+++ tools/cvs2fossil/lib/c2f_psym.tcl
@@ -44,22 +44,16 @@
44 method id {} { return $myid }
45
46 method istrunk {} { return 0 }
47
48 method parent {} {
49 return [$myproject getsymbol [state run {
50 SELECT S.name
51 FROM preferedparent P, symbol S
52 WHERE P.sid = $myid
53 AND S.sid = P.pid
 
 
 
 
 
54 }]]
 
55 }
56
57 # # ## ### ##### ######## #############
58 ## Symbol type
59
60

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button