Commits

Yuya Nishihara committed 2fc2dfe

fix exception on norepo commands where repo is None

Comments (0)

Files changed (1)

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):