changeset 50879 | 75b90a8eb168 |
parent 50878 | 4803cea1e5ab |
child 51273 | 03665fd8ccb9 |
--- a/hgext/narrow/narrowcommands.py Sun Aug 20 17:04:17 2023 -0400 +++ b/hgext/narrow/narrowcommands.py Sun Aug 20 17:05:52 2023 -0400 @@ -527,8 +527,8 @@ # import rules from a file newrules = opts.get('import_rules') if newrules: + filepath = os.path.join(encoding.getcwd(), newrules) try: - filepath = os.path.join(encoding.getcwd(), newrules) fdata = util.readfile(filepath) except IOError as inst: raise error.StorageError(