Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8.2, 0.8.3, and 0.9

stable cmenu: more explicit root check

With previous logic, a file selection in the root folder was treated as if
the root folder was selected.

Changeset 940be031f294

Parent 6ca6aa839d0a

by Steve Borho

Changes to one file · Browse files at 940be031f294 Showing diff from parent 6ca6aa839d0a Diff from another changeset...

 
355
356
357
358
 
359
360
361
 
355
356
357
 
358
359
360
361
@@ -355,7 +355,7 @@
  // check if target directory is a Mercurial repository   std::string root = GetHgRepoRoot(cwd);   isHgrepo = !root.empty(); - if (cwd == root && myFiles.size() == 1) + if (myFiles.size() == 1 && root == myFiles[0])   {   fileMenu = false;   myFolder = cwd;