Commits

Henrik Stuart committed 74a5ef3

Minor cleanup, make sure it works on latest crew default

Comments (0)

Files changed (2)

             self.undolst = []
             self.currentidx = -1
 
-    def _firstIndex(self):       return int(self.undolst[ 0].split()[0]) if self.undolst else -1
-    def _lastIndex(self):        return int(self.undolst[-1].split()[0]) if self.undolst else -1
-    def _undoListPath(self):     return self.repo.join(os.path.join('multiundo','multiundo.lst'))
-    def _undoIndexPath(self):    return self.repo.join(os.path.join('multiundo','multiundo.idx'))
-    def _ithUndoRoot(self, idx): return self.repo.join(os.path.join('multiundo','undo', str(idx)))
-    def _ithRedoRoot(self, idx): return self.repo.join(os.path.join('multiundo','redo', str(idx)))
+    def _firstIndex(self):
+        return int(self.undolst[ 0].split()[0]) if self.undolst else -1
+
+    def _lastIndex(self):
+        return int(self.undolst[-1].split()[0]) if self.undolst else -1
+
+    def _undoListPath(self):
+        return self.repo.join(os.path.join('multiundo','multiundo.lst'))
+
+    def _undoIndexPath(self):
+        return self.repo.join(os.path.join('multiundo','multiundo.idx'))
+
+    def _ithUndoRoot(self, idx):
+        return self.repo.join(os.path.join('multiundo','undo', str(idx)))
+
+    def _ithRedoRoot(self, idx):
+        return self.repo.join(os.path.join('multiundo','redo', str(idx)))
     
     def _write_currentidx(self):
         _ensureDirectoryExistance(os.path.dirname(self._undoIndexPath()))
   $ echo ling > ling
   $ hg commit -Am "seventh fish ling"
   adding ling
-  $ more carp
+  $ cat carp
   carp
   $ hg slog
   6:35c6905cc353: seventh fish ling