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)
---------------------------------------------------
This is how it works:
---------------------------------------------------
$ hg paths
default = /ws/onnv-clone
onnv-clone = ssh://onnv.sfbay.sun.com//export/onnv-clone
onnv-closed = ssh://onhg at onnv.sfbay.sun.com//export/onnv-gate/usr/closed
onnv-closed-clone = ssh://onnv.sfbay.sun.com//export/onnv-clone/usr/closed
onnv-gate = ssh://onhg at onnv.sfbay.sun.com//export/onnv-gate
$ hg reparent onnv-clone
$ hg paths
default = ssh://onnv.sfbay.sun.com//export/onnv-clone
onnv-clone = ssh://onnv.sfbay.sun.com//export/onnv-clone
onnv-closed = ssh://onhg at onnv.sfbay.sun.com//export/onnv-gate/usr/closed
onnv-closed-clone = ssh://onnv.sfbay.sun.com//export/onnv-clone/usr/closed
onnv-gate = ssh://onhg at onnv.sfbay.sun.com//export/onnv-gate
---------------------------------------------------
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.
Thanks,
Venky.