changeset 9344:eb6af02307ec

Merge with i18n-stable
author Matt Mackall <mpm@selenic.com>
date Wed, 12 Aug 2009 12:06:12 -0500
parents e15bc0433897
children 94114ea3503d 3ac42ca1f3e6 91b9a06088da
files mercurial/hg.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hg.py	Wed Aug 05 10:56:20 2009 -0300
+++ b/mercurial/hg.py	Wed Aug 12 12:06:12 2009 -0500
@@ -89,6 +89,8 @@
 
     if not dest:
         dest = os.path.basename(source)
+    else:
+        dest = ui.expandpath(dest)
 
     if isinstance(source, str):
         origsource = ui.expandpath(source)
@@ -189,6 +191,8 @@
     if dest is None:
         dest = defaultdest(source)
         ui.status(_("destination directory: %s\n") % dest)
+    else:
+        dest = ui.expandpath(dest)
 
     dest = localpath(dest)
     source = localpath(source)