1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
|
}
set gitmsg [string trim $gitmsg]
if {$sts} {
tk_messageBox -icon error -title "GIT revert error" -message $gitmsg \
-parent $top
}
}
# Mount a directory revision as a VFS, and return the mount point
proc eskil::rev::FOSSIL::mount {dir rev} {
return [vcsvfs::fossil::mount $dir $rev]
}
# Mount a directory revision as a VFS, and return the mount point
proc eskil::rev::SVN::mount {dir rev} {
return [vcsvfs::svn::mount $dir $rev]
}
# Mount a directory revision as a VFS, and return the mount point
proc eskil::rev::HG::mount {dir rev} {
return [vcsvfs::hg::mount $dir $rev]
}
# Mount a directory revision as a VFS, and return the mount point
proc eskil::rev::GIT::mount {dir rev} {
return [vcsvfs::git::mount $dir $rev]
}
# View log between displayed versions
proc eskil::rev::CVS::viewLog {top filename revs} {
set cmd [list exec cvs -q log -N]
if {[llength $revs] > 1} {
lappend cmd -r[join $revs ":"]
|
>
>
>
>
>
>
>
>
|
|
|
|
|
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
|
}
set gitmsg [string trim $gitmsg]
if {$sts} {
tk_messageBox -icon error -title "GIT revert error" -message $gitmsg \
-parent $top
}
}
# Common helper function to handle the mount command
proc eskil::rev::mount {args} {
set res [{*}$args]
# Also mount it in the sub interpreter, unless it is already there
SubEval [list if "!\[[list file isdir $res]\]" $args]
return $res
}
# Mount a directory revision as a VFS, and return the mount point
proc eskil::rev::FOSSIL::mount {dir rev} {
return [eskil::rev::mount vcsvfs::fossil::mount $dir $rev]
}
# Mount a directory revision as a VFS, and return the mount point
proc eskil::rev::SVN::mount {dir rev} {
return [eskil::rev::mount vcsvfs::svn::mount $dir $rev]
}
# Mount a directory revision as a VFS, and return the mount point
proc eskil::rev::HG::mount {dir rev} {
return [eskil::rev::mount vcsvfs::hg::mount $dir $rev]
}
# Mount a directory revision as a VFS, and return the mount point
proc eskil::rev::GIT::mount {dir rev} {
return [eskil::rev::mount vcsvfs::git::mount $dir $rev]
}
# View log between displayed versions
proc eskil::rev::CVS::viewLog {top filename revs} {
set cmd [list exec cvs -q log -N]
if {[llength $revs] > 1} {
lappend cmd -r[join $revs ":"]
|