Skip to content
Snippets Groups Projects
Commit eb149546 authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

Fix the environment variable check to work also when not present

parent 490eecd2
No related branches found
No related tags found
No related merge requests found
......@@ -340,7 +340,6 @@
# Don't run if using Rust on a revision before the Rust modulepolicy
# was introduced
if os.environ.get("HGMODULEPOLICY").startswith("rust"):
# Don't use `subprocess.PIPE` as it can deadlock (see docs).
# We capture `stderr` because the error message from `hg log` would
# make it seem like there was a bug.
......@@ -352,6 +351,7 @@
"revision 94167e701e12"
", skipping."
)
if os.environ.get("HGMODULEPOLICY", '').startswith("rust"):
def _matchrevset(self, revset, target_rev):
"""return True if <target-rev> is within <revset>"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment