[darcs-devel] darcs patch: Extra boring patterns.

Dave Love fx at gnu.org
Mon Nov 13 14:59:04 PST 2006


"Eric Y. Kow" <eric.kow at gmail.com> writes:

> Maybe we should have more comments to say what makes patterns boring.

Here's a start.

-------------- next part --------------

New patches:

[Annotate various boring patterns.
Dave Love <fx at gnu.org>**20061113225701] {
hunk ./RepoPrefs.lhs 115
-                 ["\\.hi$", "\\.hi-boot$", "\\.o-boot$",
-                  "\\.o$","\\.o\\.cmd$",
+                 ["\\.hi$", "\\.hi-boot$", "\\.o-boot$", -- Haskell interfaces
+                  "\\.o$","\\.o\\.cmd$", -- object files
hunk ./RepoPrefs.lhs 121
-                  "(^|/)\\.tmp_versions($|/)","(^|/)CVS($|/)","(^|/)RCS($|/)","~$",
-                  "#(^|/)\\.[^/]","(^|/)_darcs($|/)",
-                  "\\.bak$","\\.BAK$","\\.orig$","(^|/)vssver\\.scc$",
-                  "\\.swp$","(^|/)MT($|/)",
-                  "(^|/)\\{arch\\}($|/)","(^|/).arch-ids($|/)",
-                  "(^|/),","\\.class$","\\.prof$","(^|/)\\.DS_Store$",
+                  "(^|/)\\.tmp_versions($|/)",
+                  "(^|/)CVS($|/)","\\.cvsignore$", -- CVS
+                  "^\\.#",              -- CVS, Emacs locks
+                  "(^|/)RCS($|/)", ",v$", -- RCS
+                  "(^|/)\\.svn($|/)",   -- Subversion admin directory
+                  "\\.bzr$", "(^|/)SCCS($|/)", -- bzr, SCCS
+                  "~$",                 -- Emacs (and other) backups 
+                  "(^|/)_darcs($|/)",   -- darcs admin directory
+                  "\\.bak$","\\.BAK$",  -- editor backups(?)
+                  "\\.orig$", "\\.rej$", -- patch originals and rejects
+                  "(^|/)vssver\\.scc$",
+                  "\\.swp$","(^|/)MT($|/)", 
+                  "(^|/)\\{arch\\}($|/)","(^|/).arch-ids($|/)", -- GNU Arch
+                  "(^|/),","\\.prof$","(^|/)\\.DS_Store$",
hunk ./RepoPrefs.lhs 136
-                  "(^|/)\\.svn($|/)","\\.py[co]$","\\#","\\.cvsignore$",
-                  "(^|/)Thumbs\\.db$",
-                  "(^|/)autom4te\\.cache($|/)",
-                  ",v$", "^\\.#", "\\.elc$", "(^|/)(tags|TAGS)$",
-                  "(^|/)SCCS($|/)", "(^|/)config\\.(log|status)$",
-                  "\\.rej$", "\\.bzr$",
-                  "(^|/|\\.)core$", "\\.(obj|a|exe|so|lo|la)$",
-                  "^\\.darcs-temp-mail$", "^\\.depend$"]
+                  -- Python, Emacs, Java byte code:
+                  "\\.py[co]$", "\\.elc$","\\.class$",
+                  "\\#", "(^|/)Thumbs\\.db$",
+                  -- autotools stuff:
+                  "(^|/)autom4te\\.cache($|/)", "(^|/)config\\.(log|status)$",
+                  "^\\.depend$",        -- generated dependencies
+                  "(^|/)(tags|TAGS)$",  -- vi, Emacs tags
+                  "#(^|/)\\.[^/]",
+                  "(^|/|\\.)core$",     -- core dumps
+                  -- objects and libraries; lo and la are libtool things
+                  "\\.(obj|a|exe|so|lo|la)$",
+                  "^\\.darcs-temp-mail$" -- darcs editor file
+                  ]
}

Context:

[refactor is_malicious_path (for easier reading)
Tommy Pettersson <ptp at lysator.liu.se>**20061113191040] 
[really use new malicious file path check in pull (not in changes)
Tommy Pettersson <ptp at lysator.liu.se>**20061113182628] 
[Add a semi-automated test for SSH-related things.
Eric Kow <eric.kow at gmail.com>**20061110110801
 
 Testing SSH stuff is tricky in that (1) you need some place to connect
 to and (2) you often want to make sure that the user interactions work
 out right.  But it can't hurt to script away the boring stuff so that
 you are naturally encouraged to test things out more thoroughly.
] 
[Pass -q flag to scp only, not ssh and scp.
Eric Kow <eric.kow at gmail.com>**20061108225137
 
 Putty's SSH (plink) does not recognise the -q flag.
 
] 
[remove old malicious_filename check (issue177)
Tommy Pettersson <ptp at lysator.liu.se>**20061110211757] 
[Update FSF address in DarcsCommandsAux.lhs.
Eric Kow <eric.kow at loria.fr>**20061113032907] 
[use new malicious file path check in pull and apply (issue177)
Tommy Pettersson <ptp at lysator.liu.se>**20061110211702] 
[fix latex markup error
Tommy Pettersson <ptp at lysator.liu.se>**20061110205511] 
[add new malicious file path check system
Tommy Pettersson <ptp at lysator.liu.se>**20061110132338
 Adds a new module DarcsCommandsAux for auxiliary functionality common to
 more than one darcs command.
] 
[add function for finding all file names in a patch
Tommy Pettersson <ptp at lysator.liu.se>**20061109144144] 
[Resolve conflict in Resolution.lhs.
Eric Kow <eric.kow at loria.fr>**20061113032236
 
] 
[External resolution can resolve conflicting adds
edwin.thomson at businesswebsoftware.com**20061106114755] 
[Only copy files needed in external_resolution
edwin.thomson at businesswebsoftware.com**20061106114719] 
[change message in 'darcs check' from "applying" to "checking" (issue147)
Tommy Pettersson <ptp at lysator.liu.se>**20061111154259] 
[add missing space in print_version (issue283)
Tommy Pettersson <ptp at lysator.liu.se>**20061111132808] 
[really dump generated darcs.ps in subdir manual/
Tommy Pettersson <ptp at lysator.liu.se>**20061108175122
 Now with working makefile!
] 
[update annotate for hashed inventories
Jason Dagit <dagit at codersbase.com>**20061108033202
 Fixes test suite failure for annotate on a repository with hashed inventory.
] 
[Pass email address only for %t in --sendmail-command.
Eric Kow <eric.kow at gmail.com>**20061029112604
 
 Given an address like Bubba Dupont <bubba at jonescollege.edu>, pass
 bubba at jonescollege.edu to the %t argument.  Msmtp seems to require this
 at least.  Note that the full address (Bubba Dupont etc) is already
 encoded in the message body anyway.
 
] 
[Refactor sendEmail and sendEmailDoc.
Eric Kow <eric.kow at gmail.com>**20061029105048] 
[Make Send code slightly easier to understand.
Eric Kow <eric.kow at gmail.com>**20061029100316] 
[make darcs.cgi look for both pristine and current
Dan <greenash at yahoo.com>**20061101222005] 
[Extra boring patterns.
Dave Love <fx at gnu.org>**20061109004620] 
[make Get work with hashed inventory.
David Roundy <droundy at darcs.net>**20061101150901
 This is inefficient, but it uses only the pre-existing refactored
 functions, so it's the easiest approach.  Later we can write an efficient
 bit of code to do the same thing.
] 
[make darcs check use Repository framework.
David Roundy <droundy at darcs.net>**20060927024514] 
[fix parsing of hashed inventories.
David Roundy <droundy at darcs.net>**20060927024505] 
[put Repository in Show class for debugging ease.
David Roundy <droundy at darcs.net>**20060927021202] 
[add test target for testing hashed inventories.
David Roundy <droundy at darcs.net>**20060927020127] 
[add a bit of hashed inventory code.
David Roundy <droundy at darcs.net>**20060918173904] 
[I fixed up a bit of bad grammars.
Bill Trost <trost at cloud.rain.com>**20061102033207] 
[bumb version to 1.0.9rc2
Tommy Pettersson <ptp at lysator.liu.se>**20061009204226] 
[dump generated darcs.ps in subdir manual/
Tommy Pettersson <ptp at lysator.liu.se>**20061102152516] 
[resolve conflicts
Tommy Pettersson <ptp at lysator.liu.se>**20061102184834
 Merge Unrecord fix for checkpoints inventory with Repository code refactoring.
] 
[remove unrecorded tags from the checkpoint inventory (issue281)
Tommy Pettersson <ptp at lysator.liu.se>**20061031220157
 The commands Check, Get and Repair all can make use of the checkpoint
 inventory. Unrecord, Unpull and Obliterate forgot to remove deleted patches
 from that inventory.
] 
[add test that unrecord of tag removes checkpoint
Tommy Pettersson <ptp at lysator.liu.se>**20061007152648] 
[add HACKING file
Jason Dagit <dagit at codersbase.com>**20061104214749] 
[Don't lock the repo during `query manifest' (issue315).
Dave Love <fx at gnu.org>**20061105125701] 
[Include curses.h with term.h (issue326).
Dave Love <fx at gnu.org>**20061105123851] 
[Update FSF address in copyright headers.
Dave Love <fx at gnu.org>**20061104180508] 
[Add COPYING.LIB for fpstring.c.
Dave Love <fx at gnu.org>**20061104180121] 
[English and markup fixes.
Dave Love <fx at gnu.org>**20061104153036] 
[Do _not_ allow escaped quotes in `quoted'.
Eric Kow <eric.kow at loria.fr>**20061030064531
 
 This undoes the patch by Dave Love: Allow escaped quotes in `quoted'.
 The immediate problem is that it breaks make_changelog (because one of
 Tommy's entries matches on a backslash).  This feature might need more
 discussion before we include it (or not).
 
] 
[Tidy filenames before invoking tar 
Wim Lewis <wiml at hhhh.org>**20061026035535
 Only use the last path component of --dist-name for the distribution
 name; the rest is still used when creating the final tar file. (issue323)
] 
[Add hi-boot and o-boot extensions in default boring file.
Eric Kow <eric.kow at gmail.com>**20061019071304
 
 These are automatically generated from hs-boot.
 Suggested by Bulat Ziganshin.
 
] 
[Replace tabs with spaces (escaped quotes in PatchMatch).
Eric Kow <eric.kow at loria.fr>**20061023192003] 
[Fix some obsolete autoconf stuff.
Dave Love <fx at gnu.org>**20061015155914] 
[Allow escaped quotes in `quoted'.
Dave Love <fx at gnu.org>**20060716193940] 
[TAG 1.0.9rc1
Tommy Pettersson <ptp at lysator.liu.se>**20061008175207] 
[bump version to 1.0.9rc1
Tommy Pettersson <ptp at lysator.liu.se>**20061008175156] 
[Added --store-in-memory option for diff
edwin.thomson at businesswebsoftware.com**20061006122802
 
] 
[Move RawMode into DarcsUtils to break cyclic imports on Win32
Josef Svenningsson <josef.svenningsson at gmail.com>**20061004120024] 
[Look for Text.Regex in package regex-compat. Needed for GHC 6.6
Josef Svenningsson <josef.svenningsson at gmail.com>**20061004123158] 
[Added rigorous error checking in exec
Magnus Jonsson <magnus at smartelectronix.com>**20061006222630
 All lowlevel C return values are checked and turned into
 exceptions if they are error codes. In darcs main
 ExecExceptions are caught and turned into error messages
 to help the user.
] 
[Require 'permission denied' test for MacOS X again.
Eric Kow <eric.kow at gmail.com>**20060930121032
 
 This removes a workaround that had demoted a pull.pl test to a mere TODO under
 MacOS X. For some reason, under MacOS X, we would occasionally get "Unexpected
 error: 0" instead of "permission denied".  The error was first reported on
 2005-11-06 by Erik Schnetter.  We still don't know why it does this, but now
 test seems to systematically "unexpectedly succeed" under MacOS X 10.4.7.
 Perhaps something in MacOS X that was fixed since the error was reported?
 
] 
[In procmail examples, don't use a lock file
era+darcs at iki.fi**20060924111522] 
[add some changelog entries
Tommy Pettersson <ptp at lysator.liu.se>**20060930120140] 
[remove duplicate file names in fix_filepaths (fixes issue273)
Tommy Pettersson <ptp at lysator.liu.se>**20060929145335] 
[add test for replace command with duplicated file name
Tommy Pettersson <ptp at lysator.liu.se>**20060929144008] 
[remove some tabs from darcs source
Tommy Pettersson <ptp at lysator.liu.se>**20060929211203] 
[--matches now accepts logical 'and' 'or' '!' in addition to '&&' '||' 'not'.
Pekka Pessi <ppessi at gmail.com>**20060915140406] 
[Canonize Era Eriksson.
Eric Kow <eric.kow at loria.fr>**20060928223224] 
[Move bug reporting code to its own module.
Eric Kow <eric.kow at loria.fr>**20060928222826
 
 Fixes circular dependency caused by David's unrevert cleanup (which moves
 edit_file to DarcsUtil, thus causing it to depend on Exec) and Tommy's
 exec patches (which add impossible.h to Exec, thus causing it to depend
 on DarcsUtil).
 
] 
[clean up unrevert and pending handling.
David Roundy <droundy at darcs.net>**20060917214136] 
[Reword paragraph about Procmail's umask handling
era+darcs at iki.fi**20060924114546
 
 The explanation now helpfully hints that similar tricks may be necessary
 in other mail programs, too
] 
[Wrap .muttrc example so it doesn't bleed into margin in PostScript version
era+darcs at iki.fi**20060924111313] 
["Granting access to a repository": remove odd orphaned? sentence
era+darcs at iki.fi**20060924111142] 
[era's trivial typo fixes
era+darcs at iki.fi**20060924110945
 	* best_practices.tex (subsection{Conflicts}): \emph pro \verb
 	  around emphasized word "only"
 
 	* DarcsArguments.lhs (intersection_or_union): uppercase "[DEFAULT]";
 	  (disable_ssh_cm docs): remove duplicate "which"
 
 	* Help.lhs: Missing full stop in description of --extended-help
 
 	* Mv.lhs (mv_description): Missing apostrophe in "Apple's"
 
 	* PatchShow.lhs (showHunk): Replace "that the white space must not"
 	  with "that whitespace must not"
] 
[show error messages when starting and stoping the ssh control master
Tommy Pettersson <ptp at lysator.liu.se>**20060916010645] 
[redirect errors to null where exec output is used but failure is not fatal
Tommy Pettersson <ptp at lysator.liu.se>**20060916010116
 Error messages in the output would destroy the result, but if the command
 fails some other action is taken, so error messages shall not be displayed
 to the user.
] 
[redirect errors to stderr where exec output is used
Tommy Pettersson <ptp at lysator.liu.se>**20060916005651
 Error messages would destroy the result if they ended up in the output.
 If the external command fails, darcs should (but does not always) fail.
] 
[redirect errors to stderr where exec is checked and darcs fails
Tommy Pettersson <ptp at lysator.liu.se>**20060916004407
 In these situations the user will get both the error message from the
 failing external command and a message from darcs about what action it
 could not perform.
] 
[simplify helper function stupidexec in copyRemoteCmd
Tommy Pettersson <ptp at lysator.liu.se>**20060915222923] 
[reindent some long lines
Tommy Pettersson <ptp at lysator.liu.se>**20060915222654] 
[update calls to exec and exec_fancy to new interface
Tommy Pettersson <ptp at lysator.liu.se>**20060915222226] 
[fix typo
Tommy Pettersson <ptp at lysator.liu.se>**20060915164446] 
[rewrite Exec.lhs, new exec interface with Redirects
Tommy Pettersson <ptp at lysator.liu.se>**20060911102933
 Make the code structure a bit simpler and easier to understand.
 Only one (fancy) version of exec.
] 
[Fix Windows stderr non-redirection.
Eric Kow <eric.kow at gmail.com>**20060909055204
 
 (It was consistently redirecting to stdout.)
 
 Also make the exec code more readable/transparent.
 
] 
[whatsnew --look-for-adds doesn't read unadded files (fix for issue79)
Jason Dagit <dagit at codersbase.com>**20060910193803
 The default mode for whatsnew --look-for-adds is summary mode.  In summary
 mode full patches are not needed.  This fix changes whatsnew
 --look-for-adds to stop computing the full patch for a file when the
 file is not managed by darcs.
] 
[Correct canonical email for Kirill Smelkov
Kirill Smelkov <kirr at landau.phys.spbu.ru>**20060912080004] 
[Be explicit about timezone handling (issue220); assume local by default.
Eric Kow <eric.kow at gmail.com>**20060812102034
 
 Except for the local timezone in the user interface, this patch is not
 expected to change darcs's behaviour.  It merely makes current practice
 explicit:
 
 - Assume local timezone when parsing date strings from the user
   interface (previous behaviour was assuming UTC).
 
 - Assume UTC timezone when parsing date strings from PatchInfo.
   Newer patch date strings do *not* specify the timezone, so it
   would be prudent to treat these as UTC.
  
 - Disregard timezone information altogether when reading patch
   dates (issue220).  Note that this bug was not caused by assuming local
   timezone, because legacy patch date strings explicitly tell you what
   the timezone to use.  The bug was caused by a patch that fixed
   issue173 by using timezone information correctly.  To preserve
   backwards-compatability, we deliberatly replicate the incorrect
   behaviour of overriding the timezone with UTC.
   (PatchInfo.make_filename)
  
] 
[Account for timezone offset in cleanDate  (Fixes issue173).
Eric Kow <eric.kow at gmail.com>**20060610193049
 
] 
[move test for tabs from makefile to haskell_policy test
Tommy Pettersson <ptp at lysator.liu.se>**20060730122348] 
[add test for haskell policy
Tommy Pettersson <ptp at lysator.liu.se>**20060730121404] 
[ratify some uses of readFile and hGetContents
Tommy Pettersson <ptp at lysator.liu.se>**20060730121158] 
[Remove direct dependency to mapi32.dll; Improve MAPI compatibility.
Esa Ilari Vuokko <ei at vuokko.info>**20051130000915] 
[Canonize Kirill Smelkov and Anders Hockersten.
Eric Kow <eric.kow at gmail.com>**20060910052541] 
[Correct 'one one' in web page.
Eric Kow <eric.kow at loria.fr>**20060908191241] 
[Fix merge conflicts.
Juliusz Chroboczek <jch at pps.jussieu.fr>**20060906191317] 
[fix bug in pristine handling when dealing with multiple patches.
David Roundy <droundy at darcs.net>**20060731111404] 
[fix ordering of operations to call pull_first_middles properly.
David Roundy <droundy at darcs.net>**20060730111409] 
[make amend-record.pl test a bit pickier.
David Roundy <droundy at darcs.net>**20060730103854] 
[simplify code a tad in get.
David Roundy <droundy at darcs.net>**20060726121737] 
[fix bug in refactoring of get.
David Roundy <droundy at darcs.net>**20060726121655] 
[refactor Population.
David Roundy <droundy at darcs.net>**20060716034837] 
[add TODO for refactoring get_markedup_file.
David Roundy <droundy at darcs.net>**20060716034339] 
[partial refactoring in annotate.
David Roundy <droundy at darcs.net>**20060716034319] 
[don't use DarcsRepo in list_authors.
David Roundy <droundy at darcs.net>**20060716033450] 
[I've now eliminated need to export DarcsRepo.write_patch.
David Roundy <droundy at darcs.net>**20060716033109] 
[partially refactor Optimize.
David Roundy <droundy at darcs.net>**20060716032934] 
[partial refactoring of Get.
David Roundy <droundy at darcs.net>**20060716031605] 
[refactor amend-record.
David Roundy <droundy at darcs.net>**20060716021003] 
[add TODO to refactor unrevert handling.
David Roundy <droundy at darcs.net>**20060716020247] 
[refactor Unrecord, adding tentativelyRemovePatches.
David Roundy <droundy at darcs.net>**20060716015150] 
[refactor tag.
David Roundy <droundy at darcs.net>**20060716011853] 
[refactor Repository to allow truly atomic updates.
David Roundy <droundy at darcs.net>**20060716011245] 
[Do not redirect to or from /dev/null when calling ssh.
Eric Kow <eric.kow at loria.fr>**20060903214831
 
 Redirection of stdin and stdout breaks putty, which uses these to
 interact with the user.  Quiet mode, and redirecting stderr are good
 enough for making ssh silent.
 
] 
[Exec improvements : Windows redirection, and more redirection control.
Eric Kow <eric.kow at gmail.com>**20060707054134
 
 - Implement ability to redirect to /dev/null under Windows
   (eivuokko on #darcs points out that it is NUL under Windows)
 
 - Add exec_ function, which does the same thing as exec,
   but allows redirection on stderr, and also allows us
   to NOT redirect stdin/stderr
 
] 
[Ignore .git if _darcs found.
Juliusz Chroboczek <jch at pps.jussieu.fr>**20060831231933] 
[overhaul the darcs.net front page.
Mark Stosberg <mark at summersault.com>**20060820191415
 
 The themes to this change are:
 
 - Focus on the key benefits of darcs:
     Distributed. Interactive. Smart.
 
 - Recognize that the wiki is the central resource,
    and remove some information that is duplicated here
    and reference the wik instead. 
 
 I can post a demo of this HTML for easy comparison if you'd like.
 
     Mark
] 
[Reimplement --disable-ssh-cm flag (issue239).
Eric Kow <eric.kow at gmail.com>**20060812134856
 
 My patch to "Only launch SSH control master on demand" accidentally
 removed the ability to disable use of SSH ControlMaster.  Also, the
 way it was implemented is not compatible with launching on demand.
 This implementation relies on a notion of global variables using
 unsafe IORefs.
 
] 
[Compile Global.lhs in place of AtExit.lhs.
Eric Kow <eric.kow at gmail.com>**20060812121943] 
[Rename AtExit module to Global.
Eric Kow <eric.kow at gmail.com>**20060812121925
 
 The goal is to capture some broad "global" notions like exit handlers
 and global variables.  Note the GPL header thrown in for good measure.
 
] 
[Raise exception if unable to open logfile (issue142).
Zachary P. Landau <kapheine at divineinvasion.net>**20060810034035] 
[Make the pull 'permission test' work when run as root
Jon Olsson <jon at vexed.se>**20060831193834] 
[TAG darcs-unstable-20060831
Juliusz Chroboczek <jch at pps.jussieu.fr>**20060831191554] 
Patch bundle hash:
9081be09c8e6428adf377a9766d82ed970eadb1f


More information about the darcs-devel mailing list