Skip to content
Snippets Groups Projects
Commit 482728ca authored by Jeff Sipek's avatar Jeff Sipek
Browse files

git: add nop refresh method to gitdirstate

$ hg log -l1
...
Traceback (most recent call last):
  File "/home/jeffpc/src/oss/hg-gitext-test/../hg-gitext/hg", line 61, in <module>
    dispatch.run()
...
  File "/usr/home/jeffpc/src/oss/hg-gitext/mercurial/dispatch.py", line 1253, in _dispatch
    repo.close()
  File "/usr/home/jeffpc/src/oss/hg-gitext/mercurial/localrepo.py", line 1607, in close
    self._writecaches()
  File "/usr/home/jeffpc/src/oss/hg-gitext/mercurial/localrepo.py", line 1611, in _writecaches
    self._revbranchcache.write()
  File "/usr/home/jeffpc/src/oss/hg-gitext/mercurial/branching/rev_cache.py", line 362, in write
    wlock.release()
  File "/usr/home/jeffpc/src/oss/hg-gitext/mercurial/lock.py", line 392, in release
    self.releasefn()
  File "/usr/home/jeffpc/src/oss/hg-gitext/mercurial/localrepo.py", line 3162, in unlock
    if self.dirstate.is_changing_any:
       ^^^^^^^^^^^^^
  File "/usr/home/jeffpc/src/oss/hg-gitext/mercurial/localrepo.py", line 225, in __get__
    return super(unfilteredpropertycache, self).__get__(unfi)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/home/jeffpc/src/oss/hg-gitext/mercurial/util.py", line 1822, in __get__
    result = self.func(obj)
             ^^^^^^^^^^^^^^
  File "/usr/home/jeffpc/src/oss/hg-gitext/mercurial/localrepo.py", line 1804, in dirstate
    self._dirstate.refresh()
    ^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'gitdirstate' object has no attribute 'refresh'
parent 70b523d7
No related branches found
No related tags found
2 merge requests!1292Draft: 7.0rc preparation,!1192git: octopus handling, major speed ups, and generally making 'hg log' work
Pipeline #96699 passed
......@@ -468,3 +468,6 @@
def running_status(self, repo):
raise NotImplementedError
def refresh(self):
pass
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment