Mercurial > public > mercurial-scm > hg
comparison mercurial/hg.py @ 9344:eb6af02307ec
Merge with i18n-stable
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 12 Aug 2009 12:06:12 -0500 |
parents | d7d3afd935fa |
children | 94114ea3503d 1444a42f6052 |
comparison
equal
deleted
inserted
replaced
9341:e15bc0433897 | 9344:eb6af02307ec |
---|---|
87 if not islocal(source): | 87 if not islocal(source): |
88 raise util.Abort(_('can only share local repositories')) | 88 raise util.Abort(_('can only share local repositories')) |
89 | 89 |
90 if not dest: | 90 if not dest: |
91 dest = os.path.basename(source) | 91 dest = os.path.basename(source) |
92 else: | |
93 dest = ui.expandpath(dest) | |
92 | 94 |
93 if isinstance(source, str): | 95 if isinstance(source, str): |
94 origsource = ui.expandpath(source) | 96 origsource = ui.expandpath(source) |
95 source, rev, checkout = parseurl(origsource, '') | 97 source, rev, checkout = parseurl(origsource, '') |
96 srcrepo = repository(ui, source) | 98 srcrepo = repository(ui, source) |
187 checkout = rev and rev[-1] or None | 189 checkout = rev and rev[-1] or None |
188 | 190 |
189 if dest is None: | 191 if dest is None: |
190 dest = defaultdest(source) | 192 dest = defaultdest(source) |
191 ui.status(_("destination directory: %s\n") % dest) | 193 ui.status(_("destination directory: %s\n") % dest) |
194 else: | |
195 dest = ui.expandpath(dest) | |
192 | 196 |
193 dest = localpath(dest) | 197 dest = localpath(dest) |
194 source = localpath(source) | 198 source = localpath(source) |
195 | 199 |
196 if os.path.exists(dest): | 200 if os.path.exists(dest): |