Mercurial > hg > mercurial-crew-with-dirclash
comparison purge.py @ 2374:ffc2ed61061b
Even on Windows self._repo.dirstate.state() wants '/' in paths
author | demian@gaudron.lan |
---|---|
date | Tue, 16 May 2006 21:05:00 +0200 |
parents | 61976a27aa2b |
children | 9f4f77693890 |
comparison
equal
deleted
inserted
replaced
2373:61976a27aa2b | 2374:ffc2ed61061b |
---|---|
83 except OSError, e: | 83 except OSError, e: |
84 self._error('"%s" cannot be removed' % name) | 84 self._error('"%s" cannot be removed' % name) |
85 | 85 |
86 def _relative_name(self, name): | 86 def _relative_name(self, name): |
87 splitted_path = self._split_path(name)[len(self._hg_root):] | 87 splitted_path = self._split_path(name)[len(self._hg_root):] |
88 return self._join_path(splitted_path) | 88 # Even on Windows self._repo.dirstate.state() wants '/'. |
89 return self._join_path(splitted_path).replace('\\', '/') | |
89 | 90 |
90 def _split_path(self, path): | 91 def _split_path(self, path): |
91 ret = [] | 92 ret = [] |
92 while True: | 93 while True: |
93 head, tail = os.path.split(path) | 94 head, tail = os.path.split(path) |