Commits

Yuya Nishihara  committed 2fc2dfe

fix exception on norepo commands where repo is None

  • Participants
  • Parent commits 9722147

Comments (0)

Files changed (1)

File hgext/backupstore.py

 # TODO better hook point
 def runcommand(orig, lui, repo, cmd, fullargs, ui, options, d, cmdpats,
                cmdoptions):
-    repo.sopener = backupopener(repo.sopener, repo.spath + '-backup')
+    if repo:
+        repo.sopener = backupopener(repo.sopener, repo.spath + '-backup')
     return orig(lui, repo, cmd, fullargs, ui, options, d, cmdpats, cmdoptions)
 
 def uisetup(ui):