# # patch "ChangeLog" # from [f3205a41fa35adee3a51524c7cbbe3e6875b7d17] # to [7bb8d037a3304654422e1da06774f2377e32236e] # # patch "commands.cc" # from [29e00cb074065130e97b16828db04e616d838660] # to [a87ca3ce98373218cf6cef5f211cba28a9978e9e] # --- ChangeLog +++ ChangeLog @@ -1,5 +1,10 @@ 2005-04-28 Richard Levitte + * commands.cc (complete): Don't talk of there really was no + expansion. + +2005-04-28 Richard Levitte + * commands.cc, commands.hh: Selector functions and type are moved to... * selectors.cc, selectors.hh: ... these files. --- commands.cc +++ commands.cc @@ -745,6 +745,18 @@ string const & str, revision_id & completion) { + // This copies the start of selectors::parse_selector().to avoid + // getting a log when there's no expansion happening...: + // + // this rule should always be enabled, even if the user specifies + // --norc: if you provide a revision id, you get a revision id. + if (str.find_first_not_of(constants::legal_id_bytes) == string::npos + && str.size() == constants::idlen) + { + completion = revision_id(str); + return; + } + vector > sels(selectors::parse_selector(str, app));