1. Oben Sonne
  2. hg-compass

Commits

Oben Sonne  committed 21af973

Don't crash in virgin repositories

  • Participants
  • Parent commits 6f573af
  • Branches default

Comments (0)

Files changed (1)

File compass.py

View file
  • Ignore whitespace
     prints a warning if a commit will create a new head.
     
     """
-    
-    #print(opts)
+    if not repo.changelog:
+        ui.write(_header("You are in a virgin repository", fc="="))    
+        return
     
     opts["verbose"] = ui.verbose