(2013-06-28)
Problem
Every time you run rancid against a suitably brain-dead cisco, it gives you a diff like this:
Index: configs/fw-asa5505.myco.local
===================================================================
retrieving revision 1.14
diff -U 4 -r1.14 fw-asa5505.myco.local
@@ -28,9 +28,9 @@
!Flash: --#-- --length-- -----date/time------ path
!Flash: 126 16275456 Jun 13 2009 18:08:58 asa821-k8.bin
!Flash: 116 459 Jan 15 2013 01:37:56 dap.xml
!Flash: 13 2048 Jun 13 2009 18:10:48 coredumpinfo
- !Flash: 14 43 Jun 28 2013 16:37:33 coredumpinfo/coredump.cfg
+ !Flash: 14 43 Jun 28 2013 16:54:41 coredumpinfo/coredump.cfg
!Flash: 127 11348300 Jun 13 2009 18:11:28 asdm-621.bin
!Flash: 3 2048 Jun 13 2009 18:16:32 log
!Flash: 12 2048 Jun 13 2009 18:16:42 crypto_archive
!Flash: 129 9526560 Jun 13 2009 18:16:56 csd_3.4.1108.pkg
Every time someone does a
show run the coredumpinfo.txt file gets touched. Of course, rancid does a
show run. Therefore, the diff.
Solution
$ hg diff rancid
diff -r 0abd4dbaa2ff rancid
--- a/rancid Mon Mar 11 10:48:01 2013 -0400
+++ b/rancid Fri Jun 28 13:32:00 2013 -0400
@@ -714,6 +714,11 @@
next if (/dhcp_[^. ]*.txt/); /s+(multiple-fs|nv_hdr|vlan.dat)$/ && next;
+
+ # We don't care about the coredumpinfo.dat file
+ # that gets touched every time someone does a show run
+ /.*coredumpinfo.*/ && next;
+
ProcessHistory("FLASH","","","!Flash: $_");
}
ProcessHistory("","","","!n");
This diff was against 2.3.6, so it might not apply to later revs.