diff hgext/git/dirstate.py @ 52631:482728ca94c1

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'
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Wed, 08 Jan 2025 22:52:01 -0500
parents ab4fb2d15bc9
children 5c48fd4c0e68
line wrap: on
line diff
--- a/hgext/git/dirstate.py	Sat Jan 04 09:00:03 2025 -0500
+++ b/hgext/git/dirstate.py	Wed Jan 08 22:52:01 2025 -0500
@@ -468,3 +468,6 @@
 
     def running_status(self, repo):
         raise NotImplementedError
+
+    def refresh(self):
+        pass