Fossil SCM

Updated method 'drop' of changesets, the in-memory parts have migrated to 'destroy' as part of the work on pass InitCSets.

aku 2008-02-26 04:53 UTC trunk
Commit 8dd5afbc80e13c1c0bcd1f9b0868efae9bf943a3
--- tools/cvs2fossil/lib/c2f_prev.tcl
+++ tools/cvs2fossil/lib/c2f_prev.tcl
@@ -214,18 +214,10 @@
214214
DELETE FROM csitem WHERE cid = $myid;
215215
DELETE FROM cssuccessor WHERE cid = $myid;
216216
}
217217
}
218218
219
- UnmapItems $mytype $myitems
220
- unset myidmap($myid)
221
-
222
- set pos [lsearch -exact $mychangesets $self]
223
- set mychangesets [lreplace $mychangesets $pos $pos]
224
- set pos [lsearch -exact $mytchangesets($mytype) $self]
225
- set mytchangesets($mytype) [lreplace $mytchangesets($mytype) $pos $pos]
226
-
227219
# Return the list of predecessors so that they can be adjusted.
228220
return [struct::list map [state run {
229221
SELECT cid
230222
FROM cssuccessor
231223
WHERE nid = $myid
232224
--- tools/cvs2fossil/lib/c2f_prev.tcl
+++ tools/cvs2fossil/lib/c2f_prev.tcl
@@ -214,18 +214,10 @@
214 DELETE FROM csitem WHERE cid = $myid;
215 DELETE FROM cssuccessor WHERE cid = $myid;
216 }
217 }
218
219 UnmapItems $mytype $myitems
220 unset myidmap($myid)
221
222 set pos [lsearch -exact $mychangesets $self]
223 set mychangesets [lreplace $mychangesets $pos $pos]
224 set pos [lsearch -exact $mytchangesets($mytype) $self]
225 set mytchangesets($mytype) [lreplace $mytchangesets($mytype) $pos $pos]
226
227 # Return the list of predecessors so that they can be adjusted.
228 return [struct::list map [state run {
229 SELECT cid
230 FROM cssuccessor
231 WHERE nid = $myid
232
--- tools/cvs2fossil/lib/c2f_prev.tcl
+++ tools/cvs2fossil/lib/c2f_prev.tcl
@@ -214,18 +214,10 @@
214 DELETE FROM csitem WHERE cid = $myid;
215 DELETE FROM cssuccessor WHERE cid = $myid;
216 }
217 }
218
 
 
 
 
 
 
 
 
219 # Return the list of predecessors so that they can be adjusted.
220 return [struct::list map [state run {
221 SELECT cid
222 FROM cssuccessor
223 WHERE nid = $myid
224

Keyboard Shortcuts

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