Mercurial > hg-stable
changeset 16321:e1615a24b73a stable
tests: make test-walkrepo use hg's symlink test
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 31 Mar 2012 10:44:31 -0500 |
parents | e11ab387e89c |
children | ba96dd4655a0 |
files | tests/test-walkrepo.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-walkrepo.py Sat Mar 31 10:44:31 2012 -0500 +++ b/tests/test-walkrepo.py Sat Mar 31 10:44:31 2012 -0500 @@ -1,11 +1,12 @@ import os from mercurial import hg, ui from mercurial.scmutil import walkrepos +from mercurial.util import checklink from os import mkdir, chdir from os.path import join as pjoin u = ui.ui() -sym = getattr(os, 'symlink', False) and getattr(os.path, 'samestat', False) +sym = checklink('.') hg.repository(u, 'top1', create=1) mkdir('subdir')