Mercurial > hg
view tests/test-paths @ 5943:ffaf2419de44
Ensure that absolutized paths from hgrc do not contain ../ segments.
author | Jesse Glick <jesse.glick@sun.com> |
---|---|
date | Tue, 08 Jan 2008 22:40:51 -0500 |
parents | |
children | 92eb0a019bf2 |
line wrap: on
line source
#!/bin/sh base=`pwd` hg init a hg clone a b cd a echo '[paths]' >> .hg/hgrc echo 'dupe = ../b' >> .hg/hgrc hg in dupe | sed "s!$base!<base>!g" cd .. hg -R a in dupe | sed "s!$base!<base>!g" true