Mercurial > hg
comparison mercurial/subrepo.py @ 18937:9a171baa9202
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.
author | Angel Ezquerra <angel.ezquerra@gmail.com> |
---|---|
date | Sat, 16 Feb 2013 01:11:20 +0100 |
parents | 1fa4edb8456e |
children | aab0c14c20d0 |
comparison
equal
deleted
inserted
replaced
18936:1fa4edb8456e | 18937:9a171baa9202 |
---|---|
311 | 311 |
312 # subrepo classes need to implement the following abstract class: | 312 # subrepo classes need to implement the following abstract class: |
313 | 313 |
314 class abstractsubrepo(object): | 314 class abstractsubrepo(object): |
315 | 315 |
316 def storeclean(self, path): | |
317 """ | |
318 returns true if the repository has not changed since it was last | |
319 cloned from or pushed to a given repository. | |
320 """ | |
321 return False | |
322 | |
316 def dirty(self, ignoreupdate=False): | 323 def dirty(self, ignoreupdate=False): |
317 """returns true if the dirstate of the subrepo is dirty or does not | 324 """returns true if the dirstate of the subrepo is dirty or does not |
318 match current stored state. If ignoreupdate is true, only check | 325 match current stored state. If ignoreupdate is true, only check |
319 whether the subrepo has uncommitted changes in its dirstate. | 326 whether the subrepo has uncommitted changes in its dirstate. |
320 """ | 327 """ |