Commits

Patrick Mézard committed 5e9f7d9

codereview: remove useless chdir in Upload()

Working with changectx we no longer touch the working directory.

Comments (0)

Files changed (1)

lib/codereview/codereview.py

 		if ui.configbool("codereview", "force_gofmt", True):
 			CheckFormat(ui, repo, self.files)
 		set_status("uploading CL metadata + diffs")
-		os.chdir(repo.root)
 		baserev = str(ctx.p1())
 		form_fields = [
 			("content_upload", "1"),