Even on Windows self._repo.dirstate.state() wants '/' in paths
authordemian@gaudron.lan
Tue, 16 May 2006 21:05:00 +0200
changeset 2374 ffc2ed61061b
parent 2373 61976a27aa2b
child 2375 9f4f77693890
Even on Windows self._repo.dirstate.state() wants '/' in paths
purge.py
--- a/purge.py	Tue May 16 21:03:07 2006 +0200
+++ b/purge.py	Tue May 16 21:05:00 2006 +0200
@@ -85,7 +85,8 @@
 
     def _relative_name(self, name):
         splitted_path = self._split_path(name)[len(self._hg_root):]
-        return self._join_path(splitted_path)
+        # Even on Windows self._repo.dirstate.state() wants '/'.
+        return self._join_path(splitted_path).replace('\\', '/')
 
     def _split_path(self, path):
         ret = []