Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0, 2.0.1, and 2.0.2

stable cmenu: avoid unnecessary work for the "thgstatus" command

Changeset dbf80348d424

Parent 73a49ac20aeb

by Daniel Atallah

Changes to one file · Browse files at dbf80348d424 Showing diff from parent 73a49ac20aeb Diff from another changeset...

 
826
827
828
 
 
 
 
 
 
 
 
 
 
829
830
831
 
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
 
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
 
873
874
875
 
 
 
 
 
 
 
 
 
 
 
876
877
878
@@ -826,6 +826,16 @@
  return;   }   + if (cmd == "thgstatus") + { + if (Thgstatus::remove(cwd) != 0) + { + std::string p = dir + "\\TortoiseHgOverlayServer.exe"; + LaunchCommand(Quote(p), dir); + } + InitStatus::check(); + return; + }     if (!myFiles.empty())   { @@ -863,17 +873,6 @@
  hgcmd += " --listfile " + Quote(tempfile);   }   - if (cmd == "thgstatus") - { - if (Thgstatus::remove(cwd) != 0) - { - std::string p = dir + "\\TortoiseHgOverlayServer.exe"; - LaunchCommand(Quote(p), dir); - } - InitStatus::check(); - return; - } -   LaunchCommand(hgcmd, cwd);   InitStatus::check();  }