Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 25624:f0745da75056
publishing: use new helper method
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 18 Jun 2015 15:34:22 -0500 |
parents | 0bee97fa1fa8 |
children | ce9e231265c1 |
comparison
equal
deleted
inserted
replaced
25623:0bee97fa1fa8 | 25624:f0745da75056 |
---|---|
802 | 802 |
803 def cancopy(self): | 803 def cancopy(self): |
804 # so statichttprepo's override of local() works | 804 # so statichttprepo's override of local() works |
805 if not self.local(): | 805 if not self.local(): |
806 return False | 806 return False |
807 if not self.ui.configbool('phases', 'publish', True): | 807 if not self.publishing(): |
808 return True | 808 return True |
809 # if publishing we can't copy if there is filtered content | 809 # if publishing we can't copy if there is filtered content |
810 return not self.filtered('visible').changelog.filteredrevs | 810 return not self.filtered('visible').changelog.filteredrevs |
811 | 811 |
812 def shared(self): | 812 def shared(self): |