Mercurial > hg-stable
changeset 15196:7f78a4137f8f
import: join base with patchurl *after* checking for stdin
This only matters when using the deprecated --base option, and
combining --base with a patch on stdin makes no sense. But it's such
an obvious bug and easy fix that I couldn't pass it by.
author | Greg Ward <greg@gerg.ca> |
---|---|
date | Sat, 01 Oct 2011 21:51:25 -0400 |
parents | 5b2a3bb06cef |
children | 7f65ce5cc011 |
files | mercurial/commands.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Sat Oct 01 21:49:04 2011 -0400 +++ b/mercurial/commands.py Sat Oct 01 21:51:25 2011 -0400 @@ -3372,11 +3372,11 @@ lock = repo.lock() parents = repo.parents() for patchurl in patches: - patchurl = os.path.join(base, patchurl) if patchurl == '-': ui.status(_('applying patch from stdin\n')) patchfile = ui.fin else: + patchurl = os.path.join(base, patchurl) ui.status(_('applying %s\n') % patchurl) patchfile = url.open(ui, patchurl)