# HG changeset patch # User Angel Ezquerra # Date 2013-02-16 00:11:20 # Node ID 9a171baa9202fed5169884713f4e03e676af092f # Parent 1fa4edb8456e4084fe18432fdcc3440c93a6a704 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/subrepo.py b/mercurial/subrepo.py --- a/mercurial/subrepo.py +++ b/mercurial/subrepo.py @@ -313,6 +313,13 @@ def subrepo(ctx, path): 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