Commit f0541696 authored by Kai Willadsen's avatar Kai Willadsen

Fix Mercurial support for comparing subdirectories of the repo

Unlike Git (where the original code was taken from) Mercurial gives
cwd-relative paths for status. As such, we need to recreate file paths
from the location, not the root.
parent 6dbbff5c
......@@ -102,7 +102,7 @@ class Vc(_vc.CachedVc):
for entry in entries:
# we might have a space in file name, it should be ignored
statekey, name = entry.split(" ", 1)
path = os.path.join(self.root, name.strip())
path = os.path.join(self.location, name.strip())
state = self.state_map.get(statekey.strip(), _vc.STATE_NONE)
tree_state[path] = state
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment