Commits

Anonymous committed 3cf725a

Strictly enforce that hg locate only uses the requested dirname

Comments (0)

Files changed (1)

     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,