##// END OF EJS Templates
record: use absolute path instead of os.chdir...
Pierre-Yves David -
r20334:205599e3 stable
parent child Browse files
Show More
@@ -601,12 +601,8 b' def dorecord(ui, repo, commitfunc, cmdsu'
601 601 # it is important to first chdir to repo root -- we'll call
602 602 # a highlevel command with list of pathnames relative to
603 603 # repo root
604 cwd = os.getcwd()
605 os.chdir(repo.root)
606 try:
607 commitfunc(ui, repo, *newfiles, **opts)
608 finally:
609 os.chdir(cwd)
604 newfiles = [repo.wjoin(nf) for nf in newfiles]
605 commitfunc(ui, repo, *newfiles, **opts)
610 606
611 607 return 0
612 608 finally:
General Comments 0
You need to be logged in to leave comments. Login now