Commits

Yuya Nishihara  committed c8d7e06

ref

  • Participants
  • Parent commits 909fc6a

Comments (0)

Files changed (1)

File cmd-filelog.diff

 # HG changeset patch
 # Date 1382278330 -32400
-# Parent b7afd06645f14a187706ba62bc20741b8f7539a4
+# Parent 0c5f6e086e818cdc66f34dc457c437f1d99c3f1b
 workbench: open Workbench even if single file specified by command-line
 
 Current behavior of "thg log" is a bit surprising.
     thg log DIR         open Workbench with revset filter
     thg log FILE1 FILE2 open Workbench with revset filter
 
-This changes "thg log" to open Workbench unconditionally, and add "thg
-filelog" command in place.
+This changes "thg log" to open Workbench unconditionally.  "thg filelog"
+command was added in place.
+
+
 
 diff --git a/tortoisehg/hgqt/run.py b/tortoisehg/hgqt/run.py
 --- a/tortoisehg/hgqt/run.py
 +++ b/tortoisehg/hgqt/run.py
-@@ -560,6 +560,11 @@ def email(ui, repoagent, *revs, **opts):
-     revs = scmutil.revrange(repo, revs)
-     return hgemail.EmailDialog(repoagent, revs)
- 
-+@command('^filelog', [], _('thg filelog FILE'))
-+def filelog(ui, repoagent, *pats, **opts):
-+    """show history of the specified file"""
-+    return _filelog(ui, repoagent, *pats, **opts)
-+
- @command('forget', [], _('thg forget [FILE]...'))
- def forget(ui, repoagent, *pats, **opts):
-     """forget selected files"""
-@@ -800,13 +805,6 @@ def init(ui, *pats, **opts):
+@@ -821,13 +821,6 @@ def init(ui, *pats, **opts):
      _('thg log [OPTIONS] [FILE]'))
  def log(ui, *pats, **opts):
      """workbench application"""
 -        # TODO: do not instantiate repo here
 -        repo = thgrepo.repository(ui, root)
 -        repoagent = repo._pyqtobj
--        return _filelog(ui, repoagent, *pats, **opts)
+-        return filelog(ui, repoagent, *pats, **opts)
 -
      # Before starting the workbench, we must check if we must try to reuse an
      # existing workbench window (we don't by default)
      # Note that if the "single workbench mode" is enabled, and there is no
-@@ -815,6 +813,7 @@ def log(ui, *pats, **opts):
+@@ -836,6 +829,7 @@ def log(ui, *pats, **opts):
      singleworkbenchmode = ui.configbool('tortoisehg', 'workbench.single', True)
      mustcreateserver = False
      if singleworkbenchmode: