1. ZyX_I
  2. aurum


ZyX_I  committed 3e5eeac

@%aurum/drivers/mercurial: Fixed dirty() function in python version of driver
It appears that repo[None].dirty() may return
something other then list of dirty files. In any case
old method has too big overhead.

  • Participants
  • Parent commits 5a46596
  • Branches default

Comments (0)

Files changed (1)

File python/aurum/aumercurial.py

View file
 def dirty(repo, filepath):
     if not hasattr(repo, '__getitem__'):
         vim_throw('statuns', repo.path)
-    dirty=repo[None].dirty()
-    if dirty and filepath in dirty:
+    m=match.match(None, None, [filepath], exact=True)
+    status=repo.status(match=m, unknown=True)
+    if any(status[:-2]):
         vim.command('let r=1')