Commits

Vadim Fint  committed 220e4aa

Fix shelving if it's done not from root of repository

  • Participants
  • Parent commits e27c63d

Comments (0)

Files changed (1)

             try:
                 # 3a. apply filtered patch to clean repo (clean)
                 opts['no_backup'] = True
-                cmdutil.revert(ui, repo, repo['.'], parents, *newfiles, **opts)
+                cmdutil.revert(
+                    ui, repo, repo['.'], parents,
+                    *[
+                        os.path.join(repo.root, f)
+                        for f in newfiles
+                    ], **opts
+                )
                 for f in added:
                     if f in newfiles:
                         util.unlinkpath(repo.wjoin(f))