Fossil SCM

Extended project class with method return full path of the project, i.e. inclusive its repository base path.

aku 2007-12-05 07:47 trunk
Commit 82e35d330423ddb6cdf0236db95ba18637063df2
--- tools/cvs2fossil/lib/c2f_project.tcl
+++ tools/cvs2fossil/lib/c2f_project.tcl
@@ -39,10 +39,12 @@
3939
return
4040
}
4141
4242
method base {} { return $mybase }
4343
method trunk {} { return $mytrunk }
44
+
45
+ method fullpath {} { return [$myrepository base?]/$mybase }
4446
4547
method printbase {} {
4648
if {$mybase eq ""} {return <Repository>}
4749
return $mybase
4850
}
4951
--- tools/cvs2fossil/lib/c2f_project.tcl
+++ tools/cvs2fossil/lib/c2f_project.tcl
@@ -39,10 +39,12 @@
39 return
40 }
41
42 method base {} { return $mybase }
43 method trunk {} { return $mytrunk }
 
 
44
45 method printbase {} {
46 if {$mybase eq ""} {return <Repository>}
47 return $mybase
48 }
49
--- tools/cvs2fossil/lib/c2f_project.tcl
+++ tools/cvs2fossil/lib/c2f_project.tcl
@@ -39,10 +39,12 @@
39 return
40 }
41
42 method base {} { return $mybase }
43 method trunk {} { return $mytrunk }
44
45 method fullpath {} { return [$myrepository base?]/$mybase }
46
47 method printbase {} {
48 if {$mybase eq ""} {return <Repository>}
49 return $mybase
50 }
51

Keyboard Shortcuts

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