Commits

Anonymous committed 29fc53f

Use repo.wjoin(...) rather than os.path.join(repo.root, ...)

Comments (0)

Files changed (1)

ban-changesets.py

 
 def getSetOfBannedChangesets(repo):
     try:
-        bannedChangesetsPath = os.path.join(repo.root,'.hgbannedchangesets')
+        bannedChangesetsPath = repo.wjoin('.hgbannedchangesets')
         f = open(bannedChangesetsPath, 'r')
         banned = set()
         changesetPat = re.compile(r"(^[0-9a-fA-F]+).*")