Add .hg dir exclude to default_cvsignore list.
authorWayne Davison <wayned@samba.org>
Fri, 18 Feb 2011 06:07:20 +0000 (22:07 -0800)
committerWayne Davison <wayned@samba.org>
Fri, 18 Feb 2011 06:09:08 +0000 (22:09 -0800)
Fixes bug 7957.

exclude.c
rsync.yo

index a8e830f..16b2a56 100644 (file)
--- a/exclude.c
+++ b/exclude.c
@@ -1036,7 +1036,7 @@ static char default_cvsignore[] =
        " *.a *.olb *.o *.obj *.so *.exe"
        " *.Z *.elc *.ln core"
        /* The rest we added to suit ourself. */
-       " .svn/ .git/ .bzr/";
+       " .svn/ .git/ .hg/ .bzr/";
 
 static void get_cvs_excludes(uint32 rflags)
 {
index af95b85..65daed5 100644 (file)
--- a/rsync.yo
+++ b/rsync.yo
@@ -1489,7 +1489,7 @@ initial items are marked as perishable -- see the FILTER RULES section):
 
 quote(quote(tt(RCS SCCS CVS CVS.adm RCSLOG cvslog.* tags TAGS .make.state
 .nse_depinfo *~ #* .#* ,* _$* *$ *.old *.bak *.BAK *.orig *.rej .del-*
-*.a *.olb *.o *.obj *.so *.exe *.Z *.elc *.ln core .svn/ .git/ .bzr/)))
+*.a *.olb *.o *.obj *.so *.exe *.Z *.elc *.ln core .svn/ .git/ .hg/ .bzr/)))
 
 then, files listed in a $HOME/.cvsignore are added to the list and any
 files listed in the CVSIGNORE environment variable (all cvsignore names