Skip to content
Snippets Groups Projects
  1. Jan 26, 2017
  2. Jan 24, 2017
  3. Jan 23, 2017
  4. Dec 13, 2016
    • Simona Vetter's avatar
      dim: git_fetch_helper · a4429fad
      Simona Vetter authored
      
      Old versions of git fetch exited with 128 when there was nothing to
      fetch. But ignoring all return values is bad as Chris recently found
      out, since then rebuilding drm-tip might go back to older branch
      versions if the fetch fails for some reason.
      
      I also noticed that current git (I have 2.11 here) don't exhibit this
      anymore.
      
      v2: s/exit/return/ to give callers a chance to do something with this.
      We use set -e, so same result (Jani).
      
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
      a4429fad
    • Simona Vetter's avatar
      dim: Update update-branches · 8afe589e
      Simona Vetter authored
      
      It's been years since drm-intel had only one maintainer, and the
      primary use-case for dim ub was only to sync between machines. Update
      the docs to reflect this, to avoid misleading committers. Also update
      the maintainer-tools branch, which is something Paulo's script also
      does.
      
      Motivated because Paulo typed an actualize.sh script which does
      exactly what dim ub is meant to do.
      
      v2: Also update quickstart guide.
      
      v3: And spelling fixes.
      
      v4: Fix title and only update maintainer-tools when not a private
      branch is checkout out (Jani).
      
      Acked-by: default avatarJani Nikula <jani.nikula@intel.com>
      Acked-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
      8afe589e
  5. Dec 07, 2016
  6. Dec 05, 2016
  7. Nov 30, 2016
  8. Nov 29, 2016
  9. Nov 28, 2016
  10. Nov 25, 2016
  11. Nov 24, 2016
  12. Nov 23, 2016
  13. Nov 22, 2016
    • Simona Vetter's avatar
      dim: Enable --scissors by default · dbc611bf
      Simona Vetter authored
      
      I never knew this even was a thing, and plain git am cuts everything
      below the scissors line (since it matches the --- of a diffstat
      start).
      
      Cc: Robert Bragg <robert@sixbynine.org>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
      dbc611bf
    • Simona Vetter's avatar
      dim: Fix issues Jani spotted · 595a76d0
      Simona Vetter authored
      
      - dim update-branches was entirely broken, fix it.
      - dim checkout's auto-branch-create mode needs to pick the right
        remote
      - check for drm-tip remote only in the drm-nightly repo (in case of
        git without worktree support).
      
      v2: Also run git fetch $remote in dim_checkout when creating a new
      branch, to avoid uncompresible error message when the branch (or the
      remote name) is super-new.
      
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
      595a76d0
  14. Nov 16, 2016
    • Simona Vetter's avatar
      dim: don't fall over relative names · b7bf98e8
      Simona Vetter authored
      
      If DIM_DRM_INTEL has .. in it (i.e. relative path) not everything
      worked as expected, this fixes it. Allows you to use an existing git
      checkout, while stashing all the dim stuff into some subdir somewhere
      out of sight.
      
      v2: Fixup paths. Oops.
      
      v3: Fixup misplace hunk from rebasing.
      
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
      b7bf98e8
    • Simona Vetter's avatar
      dim: Stop recursive rr-cache from spreading · 4dd7b48e
      Simona Vetter authored
      
      I had a bug in dim for short while which resulted in the rr-cache dir
      getting copied into itself recursively, each time dim rebuild-nightly
      was run. I fixed that, but unfortunately it spread to the real repo
      already, and a bunch of folks have it in their local checkout.
      
      Stop this infection from spreading by explicitly deleting the
      recursive rr-cache dir.
      
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
      4dd7b48e
    • Simona Vetter's avatar
      dim: remove DIM_DRM_UPSTREAM_REMOTE config var · c33c4821
      Simona Vetter authored
      
      With the automatic remote lookup this is no longer needed.
      
      v2: Wrap strings in "" (Jani).
      
      v3: Rebasing, yay!
      
      v4: Fixup rebase fallout and bugs I've spotted.
      
      v5: s/remote_url/url/
      
      v6: Remove get_remote_name, now superseeded by url_to_remote.
      
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
      c33c4821
    • Simona Vetter's avatar
      dim: remove integration-tree remotes · 2c6a2cf8
      Simona Vetter authored
      
      With the remotes stored in nightly.conf and git worktrees we can avoid
      hard-coding them in even more places.
      
      v2: Rebase.
      
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
      2c6a2cf8
    • Simona Vetter's avatar
      dim: Make update_linux_next multi-repo compliant · 0dee4cb6
      Simona Vetter authored
      
      - Only update the for-linux-next branches in the repo for the branch
        just pushed.
      - Roll out the same logic (to allow us to always merge feature
        patches) for drm-misc.
      
      v2: Bikesheds, bikesheds ... oh dear is this going to be fun to
      re-test and then re-re-rebase out all the bugfixes in the right places
      again.
      
      v3: Fixup fallout - get_remote_for_branch wasn't working correctly.
      
      v4: Don't use the nightly_ prefix, this is not about the integration
      tree. Also sprinkle local annotations for the other read variables.
      
      v5: s/map_nightly_remote/repo_to_remote/ to align with url_to_remote.
      
      v6: s/get_nightly_repo_for_branch/branch_to_repo/ to align with
      url_to_remote.  Also move next to url_to_remote.
      
      v7: Split out branch_to_repo, already needed in an earlier patch.
      
      v8: Really try to get rid of rebase fail, somehow a nightly_origin
      got resurrected!
      
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
      0dee4cb6
    • Simona Vetter's avatar
      dim: Adapt create/remove-branch · bd1f238e
      Simona Vetter authored
      
      Looking up the remote for deleting the branch is a bit an exercise.
      
      v2: Correctly keep the fake remote name from nightly.conf and the real
      (local) remote name apart.
      
      v3: More untested rebasing. This removes the FIXME comments and compat
      code from Jani, since these two functions should work now properly.
      
      v4: Now tested, and with fallout fixed - map_nightly_remote was
      was missing, and also accidently left some old garbage in.
      
      v5: s/map_nightly_remote/repo_to_remote/ to align with url_to_remote.
      Also move next to url_to_remote.
      
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
      bd1f238e
    • Simona Vetter's avatar
      dim: support multiple remotes for branches in push&pull · 52515035
      Simona Vetter authored
      
      This first patch just handles push and pull-request. Since the code
      now auto-transfroms ssh:// git urls to git:// urls we can remove
      $drm_intel_git.
      
      Still left to do is fixing up create-branch and remove-branch.
      Everything else should work here now.
      
      v2: Rebase&fixup fallout.
      
      v3: Squash in follow-up patch to rectify pull-request more.
      
      v4: Also make it work properly again for drm-intel-next (which is not
      in $integration_configuration and hence a special case again).
      
      v5: s/get_remote_for_branch/branch_to_remote/ to align with
      url_to_remote.  Also move next to url_to_remote.
      
      v6: Move branch_to_repo to the right patch.
      
      v7: Split out branch_to_remote, needed in an earlier patch.
      
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
      52515035
    • Simona Vetter's avatar
      dim: Use grep -q · 7d285255
      Simona Vetter authored
      
      Much shorter and less ugly than &> /dev/null. Suggested by Jani.
      
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
      7d285255
    • Simona Vetter's avatar
      dim: Split out drm-tip.git · 6034299c
      Simona Vetter authored
      
      This is a prep step to eventually split out the drm-misc branches all
      into their own repo. To get there we first need to split out the
      integration tree mangling.
      
      Since dim doesn't auto-update and since the transition is a good
      reason to switch over to worktrees and it's tricky it's not scripted.
      The following needs to be done when dim rebuild-nightly fails:
      
      - Make sure you have the latest dim version.
      
      - Good to also check you have a recent-ish git. Latest dim supports
        git worktree to save on disk space needed for .git metadata. It's
        much more robust than the git alternates storage trick we've used
        thus far. Note that git worktree is still optional (but that's not a
        recommended setup).
      
      - Delete $DIM_PREFIX/{drm-intel-rerere,drm-intel-nightly,maintainer-tools}
        It's not strictly needed to kill the maintainer-tools checkout too,
        but might as well switch it over to git worktree too.
      
      - Make sure you don't have any branches left over for drm-intel-rerere
        and drm-intel-nightly anywhere (since they need to switch their
        remotes).
      
      - run dim setup and enjoy the new awesomeness.
      
      If it breaks, I'm guilty ;-)
      
      v2: don't call get_remote_name before switching directories.
      
      v3: Rebase prep patches to be at the start of the series, which also
      allows this patch to be squashed together with the one that renames
      -nightly to -tip.
      
      v4: Jumping over bikesheds.
      
      v5: One more jump in read_integration_config.
      
      v6: Use remote instead of origin in local variables, picked up from
      Jani.
      
      v7: Split out misplaced hunk.
      
      v8: s/nightly_remote/remote, nightly_ should be only used for the
      integration branch remotes. While at it also use grep -q instead of &>
      /dev/null
      
      v9: With nightly_remote free use that to denote the drm-tip remote in
      rebuild-nightly.
      
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
      6034299c
Loading