Commits

Jason Harris committed 11ec9d5

- Convert tabs I introduced to spaces for consistency with the rest of the code.

  • Participants
  • Parent commits 9918ead

Comments (0)

Files changed (1)

File hgext/collapse.py

     commands.revert(ui, repo, rev=last, all=True, date=None)
     msg = ''
     if opts['message'] != "" :
-		msg = opts['message']
+        msg = opts['message']
     else:
-		first = True
-		for r in revs:
-			if not first:
-				msg += '----------------\n'
-			first = False
-			msg += repo[r].description() + "\n"
-	
-		msg += "\nHG: Enter commit message.  Lines beginning with 'HG:' are removed.\n"
-		msg += "HG: Remove all lines to abort the collapse operation.\n"
-	
-		msg = ui.edit(msg, ui.username())
+        first = True
+        for r in revs:
+            if not first:
+                msg += '----------------\n'
+            first = False
+            msg += repo[r].description() + "\n"
+    
+        msg += "\nHG: Enter commit message.  Lines beginning with 'HG:' are removed.\n"
+        msg += "HG: Remove all lines to abort the collapse operation.\n"
+    
+        msg = ui.edit(msg, ui.username())
 
-		pattern = re.compile("^HG:.*\n", re.MULTILINE);
-		msg  = re.sub(pattern, "", msg).strip();
+        pattern = re.compile("^HG:.*\n", re.MULTILINE);
+        msg  = re.sub(pattern, "", msg).strip();
 
     if not msg:
         raise util.Abort(_('empty commit message, collapse won\'t proceed'))