Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/repo.py @ 6311:a079cf630065
Add default local() and cancopy() methods to repository base class
author | John Mulligan <phlogistonjohn@asynchrono.us> |
---|---|
date | Sat, 15 Mar 2008 15:23:20 -0400 |
parents | 08d6e8754388 |
children | 08800489257e |
comparison
equal
deleted
inserted
replaced
6310:1a13a5bbbbc1 | 6311:a079cf630065 |
---|---|
32 '''raise an exception if the given capability is not present''' | 32 '''raise an exception if the given capability is not present''' |
33 if not self.capable(name): | 33 if not self.capable(name): |
34 raise NoCapability(_('cannot %s; remote repository does not ' | 34 raise NoCapability(_('cannot %s; remote repository does not ' |
35 'support the %r capability') % | 35 'support the %r capability') % |
36 (purpose, name)) | 36 (purpose, name)) |
37 | |
38 def local(self): | |
39 return False | |
40 | |
41 def cancopy(self): | |
42 return self.local() | |
43 |