diff contrib/synthrepo.py @ 41398:2ff8994ac71d

cleanup: use repo['.'] instead of repo[None].p1() Differential Revision: https://phab.mercurial-scm.org/D5707
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 25 Jan 2019 23:43:11 -0800
parents 0bd56c291359
children c07812bdd568
line wrap: on
line diff
--- a/contrib/synthrepo.py	Fri Jan 25 23:36:23 2019 -0800
+++ b/contrib/synthrepo.py	Fri Jan 25 23:43:11 2019 -0800
@@ -349,7 +349,7 @@
     # to the modeled directory structure.
     initcount = int(opts['initfiles'])
     if initcount and initdirs:
-        pctx = repo[None].p1()
+        pctx = repo['.']
         dirs = set(pctx.dirs())
         files = {}