Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Unified Diff: watchlists.py

Issue 132022: Fix watchlists for windows, for files with backslash (Closed) Base URL: svn://chrome-svn/chrome/trunk/tools/depot_tools/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/watchlists_unittest.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: watchlists.py
===================================================================
--- watchlists.py (revision 18705)
+++ watchlists.py (working copy)
@@ -104,6 +104,7 @@
"""
watchers = set() # A set, to avoid duplicates
for path in paths:
+ path = path.replace(os.sep, '/')
for name, rule in self._defns.iteritems():
if name not in self._watchlists: continue
rex_str = rule.get('filepath')
« no previous file with comments | « tests/watchlists_unittest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698