Patchwork [2,of,5] subrepo: introduce storeclean method

mail settings
Submitter Angel Ezquerra
Date Feb. 16, 2013, 12:27 p.m.
Message ID <108c3058f48613aaaeb9.1361017646@Angel-PC.localdomain>
Download mbox | patch
Permalink /patch/1016/
State Superseded, archived
Headers show


Angel Ezquerra - Feb. 16, 2013, 12:27 p.m.
# HG changeset patch
# User Angel Ezquerra <>
# Date 1360973480 -3600
# Node ID 108c3058f48613aaaeb9c090c7e98d3c0ec15f1c
# Parent  b56117a1b968211a464c4ba674539052328d3336
subrepo: introduce storeclean method

Currently this method is unused and it is not implemented for any specific
subrepo type (it always returns False). It receives a remote repository path
because a repository may have a clean store versus a given repository but not
versus another.


diff --git a/mercurial/ b/mercurial/
--- a/mercurial/
+++ b/mercurial/
@@ -313,6 +313,13 @@ 
 class abstractsubrepo(object):
+    def storeclean(self, path):
+        """
+        returns true if the repository has not changed since it was last
+        cloned from or pushed to a given repository.
+        """
+        return False
     def dirty(self, ignoreupdate=False):
         """returns true if the dirstate of the subrepo is dirty or does not
         match current stored state. If ignoreupdate is true, only check