# HG changeset patch # User Mads Kiilerich <mads@kiilerich.com> # Date 1321321495 -3600 # Tue Nov 15 02:44:55 2011 +0100 # Node ID eb5ed02d87436bc19b1c25f66004a2e192df50f4 # Parent 7917a104a285764e3547730ebe885a571268ede1 forget: use forward slashes for internal paths forget into a subrepo failed on windows because pathes were joined with \. diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -2446,7 +2446,7 @@ submatch = matchmod.narrowmatcher(subpath, m) for fsub in sub.walk(submatch): if submatch.exact(fsub): - subforget[os.path.join(subpath, fsub)] = (fsub, sub) + subforget[subpath + '/' + fsub] = (fsub, sub) except error.LookupError: ui.status(_("skipping missing subrepository: %s\n") % subpath)