gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject cvs commit: gump/python/gump/utils sync.py
Date Thu, 11 Mar 2004 20:52:06 GMT
ajack       2004/03/11 12:52:06

  Modified:    python/gump/utils sync.py
  Log:
  Skip .svn and CVS directories.
  
  Revision  Changes    Path
  1.5       +7 -4      gump/python/gump/utils/sync.py
  
  Index: sync.py
  ===================================================================
  RCS file: /home/cvs/gump/python/gump/utils/sync.py,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- sync.py	11 Mar 2004 16:13:50 -0000	1.4
  +++ sync.py	11 Mar 2004 20:52:05 -0000	1.5
  @@ -136,7 +136,10 @@
                       linkto = os.readlink(srcname)
                       os.symlink(linkto, dstname)
                   elif os.path.isdir(srcname):
  -                    self.copytree(srcname, dstname, symlinks)
  +                    if not name in ['CVS','.svn']:
  +                        self.copytree(srcname, dstname, symlinks)
  +                    else:
  +                        log.debug('Skip SVN or CVS directory ' + str(srcname))
                   else:
                       self.maybecopy(srcname, dstname)
               except (IOError, os.error), why:
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Mime
View raw message