comparison mercurial/commands.py @ 15503:eb5ed02d8743

forget: use forward slashes for internal paths forget into a subrepo failed on windows because pathes were joined with \.
author Mads Kiilerich <mads@kiilerich.com>
date Tue, 15 Nov 2011 02:44:55 +0100
parents c0e42b47ec1a
children 646759147717
comparison
equal deleted inserted replaced
15502:7917a104a285 15503:eb5ed02d8743
2444 sub = wctx.sub(subpath) 2444 sub = wctx.sub(subpath)
2445 try: 2445 try:
2446 submatch = matchmod.narrowmatcher(subpath, m) 2446 submatch = matchmod.narrowmatcher(subpath, m)
2447 for fsub in sub.walk(submatch): 2447 for fsub in sub.walk(submatch):
2448 if submatch.exact(fsub): 2448 if submatch.exact(fsub):
2449 subforget[os.path.join(subpath, fsub)] = (fsub, sub) 2449 subforget[subpath + '/' + fsub] = (fsub, sub)
2450 except error.LookupError: 2450 except error.LookupError:
2451 ui.status(_("skipping missing subrepository: %s\n") % subpath) 2451 ui.status(_("skipping missing subrepository: %s\n") % subpath)
2452 2452
2453 for f in m.files(): 2453 for f in m.files():
2454 if f not in repo.dirstate and not os.path.isdir(m.rel(f)): 2454 if f not in repo.dirstate and not os.path.isdir(m.rel(f)):