Commits

Anonymous committed e2fc799

repository objects have a wopener attribute to open wdir-relative files

Comments (0)

Files changed (1)

         ui.status("finished fetching, be sure to commit parent repo to update .hgsubstate\n")
 
 def getSubreposFromHgsub(repo):
-    root = repo.root
-    f = open(root + "/.hgsub")
+    f = repo.wopener('.hgsub')
     return [map(string.strip, line.split('=')) for line in f]
 
 def listSubrepos(ui, repo):