Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Using <em>merge --squash</em> and <em>svn.pushmergeinfo</em> together doesn't make much sense. With merge --squash, the resulting commit won't be a merge commit, so a subsequent <em>dcommit</em> won't create any mergeinfo.</p> <p>I know that (mostly older) threads here on stackoverflow suggest using --squash, but I think that's largely a relic of the past. I have been using git-svn to manage our company's svn repos for close to a year now, and so far it worked great with the following workflow:</p> <p>I always make sure before a merge that I am up-to-date and, just to be safe, that I don't have any local unsynced commits:</p> <pre><code># On local_feature_branch # Update from SVN git svn fetch &amp;&amp; git svn rebase -l # push pending commits git svn dcommit </code></pre> <p>Then I do a 'real' merge, using the "remote" SVN branch as source. This saves switching branches and updating, and ensures that the incoming branch doesn't have any local unsynced commits:</p> <pre><code># Create a real, non-forward merge commit git merge --no-ff svn/trunk # ... and push it to SVN, including mergeinfo git svn dcommit </code></pre> <p>Also, this way the merge gets properly recorded in the local history, so subsequent merges won't have to deal with previously resolved conflicts. With --squash you'd reencounter those with every merge.</p> <p>Note however that there is an open issue with mergeinfo when merging back from local_feature_branch to trunk (i.e. a reintegrate in svn-speak): <a href="https://stackoverflow.com/questions/9700998/git-svn-with-svn-pushmergeinfo-how-to-avoid-self-referencing-mergeinfo-lines">Git-SVN with svn.pushmergeinfo: how to avoid self-referencing mergeinfo lines</a>. This has happened rarely in our repo, but so far it didn't cause any trouble for me.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload