Fossil SCM

Collapse multiple uses of a project path into one project.

aku 2007-10-05 07:08 trunk
Commit d174affb48499e3c07a3513a2f501bbc56bb639a
--- tools/cvs2fossil/lib/c2f_repository.tcl
+++ tools/cvs2fossil/lib/c2f_repository.tcl
@@ -36,12 +36,16 @@
3636
set mybase $path
3737
return
3838
}
3939
4040
typemethod add {path} {
41
- # Cannot be checked immediately, the base is not known while
42
- # projects are added.
41
+ # Most things cannot be checked immediately, as the base is
42
+ # not known while projects are added. We can and do check for
43
+ # uniqueness. We accept multiple occurences of a name, and
44
+ # treat them as a single project.
45
+
46
+ if {[lsearch -exact $myprojpaths $path] >= 0} return
4347
lappend myprojpaths $path
4448
return
4549
}
4650
4751
typemethod projects {} {
4852
--- tools/cvs2fossil/lib/c2f_repository.tcl
+++ tools/cvs2fossil/lib/c2f_repository.tcl
@@ -36,12 +36,16 @@
36 set mybase $path
37 return
38 }
39
40 typemethod add {path} {
41 # Cannot be checked immediately, the base is not known while
42 # projects are added.
 
 
 
 
43 lappend myprojpaths $path
44 return
45 }
46
47 typemethod projects {} {
48
--- tools/cvs2fossil/lib/c2f_repository.tcl
+++ tools/cvs2fossil/lib/c2f_repository.tcl
@@ -36,12 +36,16 @@
36 set mybase $path
37 return
38 }
39
40 typemethod add {path} {
41 # Most things cannot be checked immediately, as the base is
42 # not known while projects are added. We can and do check for
43 # uniqueness. We accept multiple occurences of a name, and
44 # treat them as a single project.
45
46 if {[lsearch -exact $myprojpaths $path] >= 0} return
47 lappend myprojpaths $path
48 return
49 }
50
51 typemethod projects {} {
52

Keyboard Shortcuts

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