Commits

Matthew Scott  committed f83f57b

+ Allow use of 'tip+' revision to use file contents from working directory

  • Participants
  • Parent commits 97d70b4

Comments (0)

Files changed (1)

File slipper/app.py

         # Get the text of requested file/revision from repository.
         # First open the repository and get the log of the requested file.
         repo = localrepository(None, config.local_dir)
-        ctx = repo.changectx(revision)
+        if revision == 'tip+':
+            ctx = repo.workingctx()
+        else:
+            ctx = repo.changectx(revision)
         try:
             filectx = ctx[file_path]
         except LookupError: