comparison mercurial/commands.py @ 988:a66e249d77ae

Remove unused relfilter function
author mpm@selenic.com
date Sun, 21 Aug 2005 16:00:07 -0700
parents bfe12654764d
children 1b6eb272b238
comparison
equal deleted inserted replaced
987:bfe12654764d 988:a66e249d77ae
20 for t in filters: 20 for t in filters:
21 if t and t[-1] != "/": 21 if t and t[-1] != "/":
22 t += "/" 22 t += "/"
23 l += [x for x in files if x.startswith(t)] 23 l += [x for x in files if x.startswith(t)]
24 return l 24 return l
25
26 def relfilter(repo, files):
27 cwd = repo.getcwd()
28 if cwd:
29 return filterfiles([util.pconvert(cwd)], files)
30 return files
31 25
32 def relpath(repo, args): 26 def relpath(repo, args):
33 cwd = repo.getcwd() 27 cwd = repo.getcwd()
34 if cwd: 28 if cwd:
35 return [util.normpath(os.path.join(cwd, x)) for x in args] 29 return [util.normpath(os.path.join(cwd, x)) for x in args]