Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: ensure_dependencies.py

Issue 29360531: Issue 4584 - Fix ignore file path (Closed)
Patch Set: Created Oct. 30, 2016, 8:23 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ensure_dependencies.py
diff --git a/ensure_dependencies.py b/ensure_dependencies.py
index 3a2498f8a72f3c4d65dfe2c4167f13bdb75d08f0..b5231e49ce2215c823775403a3c562a333d13b62 100755
--- a/ensure_dependencies.py
+++ b/ensure_dependencies.py
@@ -71,7 +71,8 @@ class Mercurial():
def ignore(self, target, repo):
config_path = os.path.join(repo, '.hg', 'hgrc')
- ignore_path = os.path.join(repo, '.hg', 'dependencies')
+ ignore_file = os.path.join('.hg', 'dependencies')
+ ignore_path = os.path.join(repo, ignore_file)
config = RawConfigParser()
config.read(config_path)
@@ -79,7 +80,7 @@ class Mercurial():
if not config.has_section('ui'):
config.add_section('ui')
- config.set('ui', 'ignore.dependencies', ignore_path)
+ config.set('ui', 'ignore.dependencies', ignore_file)
with open(config_path, 'w') as stream:
config.write(stream)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld