Mercurial > hg
comparison mercurial/store.py @ 6989:32e68ffccbc5
store: pathjoiner default value is os.path.join
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Fri, 05 Sep 2008 11:00:07 +0200 |
parents | 907e4e9bd3c4 |
children | 7946503ec76e |
comparison
equal
deleted
inserted
replaced
6988:907e4e9bd3c4 | 6989:32e68ffccbc5 |
---|---|
118 | 118 |
119 def copylist(self): | 119 def copylist(self): |
120 return (['requires', '00changelog.i'] + | 120 return (['requires', '00changelog.i'] + |
121 [self.pathjoiner('store', f) for f in _data.split()]) | 121 [self.pathjoiner('store', f) for f in _data.split()]) |
122 | 122 |
123 def store(requirements, path, opener, pathjoiner): | 123 def store(requirements, path, opener, pathjoiner=None): |
124 pathjoiner = pathjoiner or os.path.join | |
124 if 'store' in requirements: | 125 if 'store' in requirements: |
125 return encodedstore(path, opener, pathjoiner) | 126 return encodedstore(path, opener, pathjoiner) |
126 return basicstore(path, opener, pathjoiner) | 127 return basicstore(path, opener, pathjoiner) |