Mercurial > public > mercurial-scm > hg-stable
diff mercurial/statichttprepo.py @ 13426:643b8212813e
store: remove pointless pathjoiner parameter
We can stop pretending that we have to support anything else
than '/' for concatenating path elements anywhere.
Windows deals just fine with '/' in file paths and we already
have plenty of places which produce paths containing '/'
anyway when running on Windows.
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Wed, 16 Feb 2011 15:02:30 +0100 |
parents | 14f3795a5ed7 |
children | 286a3720d472 |
line wrap: on
line diff
--- a/mercurial/statichttprepo.py Wed Feb 16 18:36:45 2011 +0100 +++ b/mercurial/statichttprepo.py Wed Feb 16 15:02:30 2011 +0100 @@ -115,9 +115,7 @@ raise error.RepoError(_("requirement '%s' not supported") % r) # setup store - def pjoin(a, b): - return a + '/' + b - self.store = store.store(requirements, self.path, opener, pjoin) + self.store = store.store(requirements, self.path, opener) self.spath = self.store.path self.sopener = self.store.opener self.sjoin = self.store.join