more svn->git transition
This commit is contained in:
parent
06e2baf945
commit
53c9fa59cb
@ -14,7 +14,7 @@ profile=no
|
|||||||
# Add <file or directory> to the black list. It should be a base name, not a
|
# Add <file or directory> to the black list. It should be a base name, not a
|
||||||
# path. You may set this option multiple times.
|
# path. You may set this option multiple times.
|
||||||
ignore=
|
ignore=
|
||||||
.svn, _tdi_impl.so
|
.git, .svn, _tdi_impl.so
|
||||||
|
|
||||||
# Pickle collected data for later comparisons.
|
# Pickle collected data for later comparisons.
|
||||||
persistent=no
|
persistent=no
|
||||||
|
@ -97,7 +97,7 @@ class Data(object):
|
|||||||
result = []
|
result = []
|
||||||
for filename in files.files:
|
for filename in files.files:
|
||||||
_, elems = splitpath(filename)
|
_, elems = splitpath(filename)
|
||||||
if '.svn' in elems:
|
if '.svn' in elems or '.git' in elems:
|
||||||
continue
|
continue
|
||||||
result.append(filename)
|
result.append(filename)
|
||||||
return cls(result, **kwargs)
|
return cls(result, **kwargs)
|
||||||
|
@ -182,7 +182,7 @@ def find_packages(manifest):
|
|||||||
sep = _os.path.join('1', '2')[1:-1]
|
sep = _os.path.join('1', '2')[1:-1]
|
||||||
for root in collect:
|
for root in collect:
|
||||||
for dirpath, _, filenames in _shell.walk(_os.path.join(lib, root)):
|
for dirpath, _, filenames in _shell.walk(_os.path.join(lib, root)):
|
||||||
if dirpath.find('.svn') >= 0:
|
if dirpath.find('.svn') >= 0 or dirpath.find('.git') >= 0:
|
||||||
continue
|
continue
|
||||||
if '__init__.py' in filenames:
|
if '__init__.py' in filenames:
|
||||||
packages[
|
packages[
|
||||||
|
@ -399,7 +399,7 @@ except AttributeError:
|
|||||||
yield top, dirs, nondirs
|
yield top, dirs, nondirs
|
||||||
|
|
||||||
|
|
||||||
def files(base, wildcard='[!.]*', recursive=1, prune=('.svn', 'CVS')):
|
def files(base, wildcard='[!.]*', recursive=1, prune=('.git', '.svn', 'CVS')):
|
||||||
""" Determine a filelist """
|
""" Determine a filelist """
|
||||||
for dirpath, dirnames, filenames in walk(native(base)):
|
for dirpath, dirnames, filenames in walk(native(base)):
|
||||||
for item in prune:
|
for item in prune:
|
||||||
@ -425,7 +425,7 @@ def files(base, wildcard='[!.]*', recursive=1, prune=('.svn', 'CVS')):
|
|||||||
dirnames.sort()
|
dirnames.sort()
|
||||||
|
|
||||||
|
|
||||||
def dirs(base, wildcard='[!.]*', recursive=1, prune=('.svn', 'CVS')):
|
def dirs(base, wildcard='[!.]*', recursive=1, prune=('.git', '.svn', 'CVS')):
|
||||||
""" Determine a filelist """
|
""" Determine a filelist """
|
||||||
for dirpath, dirnames, filenames in walk(native(base)):
|
for dirpath, dirnames, filenames in walk(native(base)):
|
||||||
for item in prune:
|
for item in prune:
|
||||||
|
@ -97,7 +97,7 @@ class Data(object):
|
|||||||
result = []
|
result = []
|
||||||
for filename in files.files:
|
for filename in files.files:
|
||||||
_, elems = splitpath(filename)
|
_, elems = splitpath(filename)
|
||||||
if '.svn' in elems:
|
if '.svn' in elems or '.git' in elems:
|
||||||
continue
|
continue
|
||||||
result.append(filename)
|
result.append(filename)
|
||||||
return cls(result, **kwargs)
|
return cls(result, **kwargs)
|
||||||
|
@ -183,7 +183,7 @@ def find_packages(manifest):
|
|||||||
sep = _os.path.join('1', '2')[1:-1]
|
sep = _os.path.join('1', '2')[1:-1]
|
||||||
for root in collect:
|
for root in collect:
|
||||||
for dirpath, _, filenames in _shell.walk(_os.path.join(lib, root)):
|
for dirpath, _, filenames in _shell.walk(_os.path.join(lib, root)):
|
||||||
if dirpath.find('.svn') >= 0:
|
if dirpath.find('.svn') >= 0 or dirpath.find('.git') >= 0:
|
||||||
continue
|
continue
|
||||||
if '__init__.py' in filenames:
|
if '__init__.py' in filenames:
|
||||||
packages[
|
packages[
|
||||||
|
@ -272,7 +272,7 @@ def spawn(*argv, **kwargs):
|
|||||||
walk = _os.walk
|
walk = _os.walk
|
||||||
|
|
||||||
|
|
||||||
def files(base, wildcard='[!.]*', recursive=1, prune=('.svn', 'CVS')):
|
def files(base, wildcard='[!.]*', recursive=1, prune=('.git', '.svn', 'CVS')):
|
||||||
""" Determine a filelist """
|
""" Determine a filelist """
|
||||||
for dirpath, dirnames, filenames in walk(native(base)):
|
for dirpath, dirnames, filenames in walk(native(base)):
|
||||||
for item in prune:
|
for item in prune:
|
||||||
@ -298,7 +298,7 @@ def files(base, wildcard='[!.]*', recursive=1, prune=('.svn', 'CVS')):
|
|||||||
dirnames.sort()
|
dirnames.sort()
|
||||||
|
|
||||||
|
|
||||||
def dirs(base, wildcard='[!.]*', recursive=1, prune=('.svn', 'CVS')):
|
def dirs(base, wildcard='[!.]*', recursive=1, prune=('.git', '.svn', 'CVS')):
|
||||||
""" Determine a filelist """
|
""" Determine a filelist """
|
||||||
for dirpath, dirnames, filenames in walk(native(base)):
|
for dirpath, dirnames, filenames in walk(native(base)):
|
||||||
for item in prune:
|
for item in prune:
|
||||||
|
Loading…
Reference in New Issue
Block a user