mercurial/commands.py
changeset 886 509de8ab6f31
parent 884 087771ebe2e6
child 887 882756761433
child 890 391de0bcc722
child 891 a9b843b114f9
equal deleted inserted replaced
884:087771ebe2e6 886:509de8ab6f31
    30     return files
    30     return files
    31 
    31 
    32 def relpath(repo, args):
    32 def relpath(repo, args):
    33     cwd = repo.getcwd()
    33     cwd = repo.getcwd()
    34     if cwd:
    34     if cwd:
    35         return [util.pconvert(os.path.normpath(os.path.join(cwd, x)))
    35         return [util.normpath(os.path.join(cwd, x)) for x in args]
    36                 for x in args]
       
    37     return args
    36     return args
    38 
    37 
    39 def matchpats(repo, cwd, pats = [], opts = {}, head = ''):
    38 def matchpats(repo, cwd, pats = [], opts = {}, head = ''):
    40     return util.matcher(repo, cwd, pats or ['.'], opts.get('include'),
    39     return util.matcher(repo, cwd, pats or ['.'], opts.get('include'),
    41                         opts.get('exclude'), head)
    40                         opts.get('exclude'), head)