##// 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 # it is important to first chdir to repo root -- we'll call
601 # it is important to first chdir to repo root -- we'll call
602 # a highlevel command with list of pathnames relative to
602 # a highlevel command with list of pathnames relative to
603 # repo root
603 # repo root
604 cwd = os.getcwd()
604 newfiles = [repo.wjoin(nf) for nf in newfiles]
605 os.chdir(repo.root)
605 commitfunc(ui, repo, *newfiles, **opts)
606 try:
607 commitfunc(ui, repo, *newfiles, **opts)
608 finally:
609 os.chdir(cwd)
610
606
611 return 0
607 return 0
612 finally:
608 finally:
General Comments 0
You need to be logged in to leave comments. Login now