Eskil

Diff
Login

Differences From Artifact [1f99bd53f2]:

To Artifact [7c3c0917b0]:


274
275
276
277
278
279
280




























281
282
283
284
285
286
287
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315







+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+







    cd $old
    set changes {}
    foreach line [split $info \n] {
        set line [string trim $line]
        if {[regexp {\S+$} $line file]} {
            lappend changes [file join $dir $file]
        }
    }
    return $changes
}
proc eskil::rev::FOSSIL::localChanges {dir} {
    set old [pwd]
    cd $dir
    set info [exec fossil changes]
    cd $old
    set changes {}
    foreach line [split $info \n] {
        set line [string trim $line]
        if {[regexp {^\S+\s+(\S+)$} $line -> file]} {
            lappend changes [file join $dir $file]
        }
    }
    return $changes
}
proc eskil::rev::GIT::localChanges {dir} {
    set old [pwd]
    cd $dir
    set info [exec git status -s --porcelain]
    cd $old
    set changes {}
    foreach line [split $info \n] {
        set line [string trim $line]
        if {[regexp {^(\S+)\s+(\S+)$} $line -> pre file]} {
            lappend changes [file join $dir $file]
        }
    }
    return $changes
}

# Get a SVN patch
proc eskil::rev::SVN::getPatch {revs {files {}}} {
    set cmd [list exec svn diff]