Skip to content
Snippets Groups Projects
  1. Oct 04, 2014
  2. Oct 03, 2014
  3. Oct 05, 2014
  4. Oct 10, 2014
  5. Oct 14, 2014
  6. Oct 10, 2014
    • Martin von Zweigbergk's avatar
      status: create class for status lists · cb4449921a1d
      Martin von Zweigbergk authored
      Callers of various status() methods (on dirstate, context, repo) get a
      tuple of 7 elements, where each element is a list of files. This
      results in lots of uses of indexes where names would be much more
      readable. For example, "status.ignored" seems clearer than "status[4]"
      [1]. So, let's introduce a simple named tuple containing the 7 status
      fields: modified, added, removed, deleted, unknown, ignored, clean.
      
      This patch introduces the class and updates the status methods to
      return instances of it. Later patches will update the callers.
      
       [1] Did you even notice that it should have been "status[5]"?
      
      (tweaked by mpm to introduce the class in scmutil and only change one user)
      cb4449921a1d
  7. Oct 04, 2014
    • Martin von Zweigbergk's avatar
      lfutil: avoid creating unnecessary copy of status tuple · 3b8e6c095239
      Martin von Zweigbergk authored
      In lfdirstatestatus(), the status tuple gets deconstructed, the lists
      get updated, and then an identical status tuple gets created and
      returned. Change it so we simply return the original tuple.
      3b8e6c095239
    • Martin von Zweigbergk's avatar
      dirstate: separate 'lookup' status field from others · 509e2cbee679
      Martin von Zweigbergk authored
      The status tuple returned from dirstate.status() has an additional
      field compared to the other status tuples: lookup/unsure. This field
      is just an optimization and not something most callers care about
      (they want the resolved value of 'modified' or 'clean'). To prepare
      for a single future status type, let's separate out the 'lookup' field
      from the rest by having dirstate.status() return a pair: (lookup,
      status).
      509e2cbee679
  8. Oct 13, 2014
  9. Oct 10, 2014
  10. Oct 11, 2014
  11. Oct 10, 2014
  12. Oct 07, 2014
  13. Oct 13, 2014
    • Durham Goode's avatar
      phases: change phase command change detection · 40f46fd7c50e
      Durham Goode authored
      A future patch is going to make phase computation lazy, so the phase command can
      no longer read and diff the entire phase list directly. This changes the phase
      command to build it's own list for diff purposes.
      40f46fd7c50e
  14. Oct 10, 2014
Loading