Venky <venkytv at opensolaris.org> writes:

> I just discovered that the "hg reparent" subcommand does not expand
> paths from hgrc.  This forces one to remember long ssh:// URLs.
>
> The fix seems quite simple.
>
> ---------------------------------------------------
>
> --- cdm.py.orig Thu Aug 21 14:45:36 2008
> +++ cdm.py      Thu Aug 21 15:13:32 2008
> @@ -836,6 +836,11 @@
>
>      filename = repo.join('hgrc')
>
> +    for name, path in ui.configitems("paths"):
> +        if name == parent:
> +            parent = path
> +            break
> +
>      cp = util.configparser()
>      try:
>          cp.read(filename)
>

I think you can use ui.expandpath()

Something like

p = ui.expandpath(parent)
if not p:
   raise util.Abort("could not find parent: %s" % parent)

(and use p in place of parent elsewhere)

Fixing this would be great (as carlsonj said, making hg-active do it
for the parent argument would be great, too)

> Should I file an RFE for this?  Is the bugs.grommit.com bugzilla
> still the one being used?  I could not reach it a few minutes ago.

bugs.opensolaris.org, please.

-- Rich

Reply via email to