File: tkp4

package info (click to toggle)
xxdiff 1%3A4.0.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,716 kB
  • ctags: 2,245
  • sloc: cpp: 18,495; python: 6,134; sh: 1,543; ansic: 1,535; perl: 308; lex: 284; yacc: 279; lisp: 250; tcl: 213; makefile: 82
file content (20 lines) | stat: -rw-r--r-- 707 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Date: Mon, 21 Apr 2003 20:35:18 -0400
# From: Christian Fowler <cfowler@lulu.com>
# To: blais@IRO.UMontreal.CA
# Subject: perforce scripts for xxdiff
# 
# Thanks for the great app!
# 
# first, here are the hacked lines of tkp4 available at
# http://web.cuug.ab.ca/~macdonal/tkp4/. Roughly lines 5511 to
# 5518:

diffRevs {
    set idx  [$p4(rhListbox) curselection]
    set rev1 [lindex [lindex [$p4(rhListbox) get[lindex $idx 0]] 0] 1]
    set rev2 [lindex [lindex [$p4(rhListbox) get[lindex $idx 1]] 0] 1]
    exec p4 print -q $p4(RevisionHistoryFile)#$rev1 > /tmp/tkp4-#$rev1
    exec p4 print -q $p4(RevisionHistoryFile)#$rev2 > /tmp/tkp4-#$rev2
    exec xxdiff /tmp/tkp4-#$rev1 /tmp/tkp4-#$rev2 &
}