Commits

Anonymous committed 3cf725a

Strictly enforce that hg locate only uses the requested dirname

  • Participants
  • Parent commits 3950ad9

Comments (0)

Files changed (1)

File setuptools_hg.py

     Use the hg command to recursively find versioned files in dirname.
     """
     try:
-        proc = subprocess.Popen(['hg', 'locate', '-I', '.'],
+        proc = subprocess.Popen(['hg', 'locate', '-I', os.path.abspath(dirname)],
                                 stdin=subprocess.PIPE,
                                 stderr=subprocess.PIPE,
                                 stdout=subprocess.PIPE,