git https://blog.riff.org/index.php/ en Tip of the day: Unfuddle DMP format and lesser-known git commands https://blog.riff.org/index.php/2016_10_22_tip_of_the_day_unfuddle_dmp_format_and_lesserknown_git_commands <article data-history-node-id="334" role="article" about="/2016_10_22_tip_of_the_day_unfuddle_dmp_format_and_lesserknown_git_commands" class="node node--type-story node--promoted node--view-mode-teaser clearfix"> <header> <h2 class="node__title"> <a href="/2016_10_22_tip_of_the_day_unfuddle_dmp_format_and_lesserknown_git_commands" rel="bookmark"><span class="field field--name-title field--type-string field--label-hidden">Tip of the day: Unfuddle DMP format and lesser-known git commands</span> </a> </h2> <div class="node__meta"> <article typeof="schema:Person" about="/user/frederic_marand" class="profile"> </article> <span> Submitted by <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/user/frederic_marand" typeof="schema:Person" property="schema:name" datatype="">Frederic Marand</span></span> on <span class="field field--name-created field--type-created field--label-hidden">Sat, 2016-10-22 13:14</span> </span> </div> </header> <div class="node__content clearfix"> <div class="node__links"> <ul class="links inline"><li class="node-readmore"><a href="/2016_10_22_tip_of_the_day_unfuddle_dmp_format_and_lesserknown_git_commands" rel="tag" title="Tip of the day: Unfuddle DMP format and lesser-known git commands" hreflang="und">Read more<span class="visually-hidden"> about Tip of the day: Unfuddle DMP format and lesser-known git commands</span></a></li><li class="comment-add"><a href="/comment/reply/node/334/comment_node_story#comment-form" title="Share your thoughts and opinions." hreflang="und">Add new comment</a></li></ul> </div> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>While <a href="http://blog.riff.org/2011_09_03_how_to_restore_unfuddle_dumps_migrating_to_drupal_casetracker">exporting a project from Unfuddle</a> in order to import its issues to Jira, I took a look at the other files beyond <code>backup.xml</code> and the <code>media/</code> directory. Turns out that when Unfuddle provides you with a project backup, it includes the repositories in an undocumented (on <a href="https://unfuddle.com/stack/docs/help/backups/">their site</a>, at least) format, under the <code>dmp</code> file extension. Let's find out how to actually use these.</p> </div> </div> </article> Sat, 22 Oct 2016 11:14:58 +0000 Frederic Marand 334 at https://blog.riff.org Git tip of the day : show the hottest files in a repo https://blog.riff.org/index.php/2015_10_30_git_tip_of_the_day_show_the_hottest_files_in_a_repo <article data-history-node-id="323" role="article" about="/2015_10_30_git_tip_of_the_day_show_the_hottest_files_in_a_repo" class="node node--type-story node--promoted node--view-mode-teaser clearfix"> <header> <h2 class="node__title"> <a href="/2015_10_30_git_tip_of_the_day_show_the_hottest_files_in_a_repo" rel="bookmark"><span class="field field--name-title field--type-string field--label-hidden">Git tip of the day : show the hottest files in a repo</span> </a> </h2> <div class="node__meta"> <article typeof="schema:Person" about="/user/frederic_marand" class="profile"> </article> <span> Submitted by <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/user/frederic_marand" typeof="schema:Person" property="schema:name" datatype="">Frederic Marand</span></span> on <span class="field field--name-created field--type-created field--label-hidden">Fri, 2015-10-30 14:22</span> </span> </div> </header> <div class="node__content clearfix"> <div class="node__links"> <ul class="links inline"><li class="node-readmore"><a href="/2015_10_30_git_tip_of_the_day_show_the_hottest_files_in_a_repo" rel="tag" title="Git tip of the day : show the hottest files in a repo" hreflang="und">Read more<span class="visually-hidden"> about Git tip of the day : show the hottest files in a repo</span></a></li><li class="comment-add"><a href="/comment/reply/node/323/comment_node_story#comment-form" title="Share your thoughts and opinions." hreflang="und">Add new comment</a></li></ul> </div> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>When auditing or reviewing an unknown code base, I often have to decide which files to examine in priority. Beyond the usual heuristics for Drupal projects (hint: look at templates in D7), how can one find the parts most likely to contain problems ? This simple command set can help pinpoint troublemaking files quickly.</p> </div> </div> </article> Fri, 30 Oct 2015 13:22:22 +0000 Frederic Marand 323 at https://blog.riff.org When Drush Make fails to apply patches... https://blog.riff.org/index.php/2013_01_25_when_drush_make_fails_to_apply_patches <span class="field field--name-title field--type-string field--label-hidden">When Drush Make fails to apply patches...</span> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/index.php/user/frederic_marand" typeof="schema:Person" property="schema:name" datatype="">Frederic Marand</span></span> <span class="field field--name-created field--type-created field--label-hidden">Fri, 2013-01-25 12:32</span> <div class="node__links"> <ul class="links inline"><li class="node-readmore"><a href="/index.php/2013_01_25_when_drush_make_fails_to_apply_patches" rel="tag" title="When Drush Make fails to apply patches..." hreflang="und">Read more<span class="visually-hidden"> about When Drush Make fails to apply patches...</span></a></li><li class="comment-comments"><a href="/index.php/2013_01_25_when_drush_make_fails_to_apply_patches#comments" title="Jump to the first comment." hreflang="und">7 comments</a></li><li class="comment-new-comments"><a href="/index.php/tags/git/feed" class="hidden" title="Jump to the first new comment." data-history-node-last-comment-timestamp="1439982720" data-history-node-field-name="comment_node_story"></a></li><li class="comment-add"><a href="/index.php/comment/reply/node/296/comment_node_story#comment-form" title="Share your thoughts and opinions." hreflang="und">Add new comment</a></li></ul> </div> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><h3>The issue</h3> <p>These last few days, I had noticed a problem with Drush Make and patches: some patches, be they rolled by our team or from elsewhere, would apply without a glitch, but some others, which worked normally according to the test bot on Drupal.org, would fail to apply without any obvious reason.</p> <p>I had mostly put it out of my list of pressing issues when I really had to use an old version of OpenLayers, 7.x-2.0-alpha2 to be specific, AND apply a patch fixing one of the bugs in that module: behaviors plugin not being located correctly (<a href="http://drupal.org/node/1898662">http://drupal.org/node/1898662</a> if you want details). So I rolled the patch, tested it locally, the qa.d.o bot applied it and did not report more errors than expected for that old version.... and my Drush Make install refused to apply it.</p> <p>Here was the relevant excerpt:</p> <pre><div class="codeblock nowrap-expand"><code>projects[domain] = 3.7<br />projects[domain][patch][] = &quot;http://drupal.org/files/domain-foreach_argument-1879502-1.patch&quot;<br />; ...snip...<br />projects[openlayers] = 2.0-alpha2<br />projects[openlayers][patch][] = &quot;http://drupal.org/files/0001-Fix-the-path-file-declaration-for-behaviors.patch&quot;<br />The Domain patch applied normally, but the OpenLayers patch would&#039;t apply. What could be wrong ?</code></div></pre> </div> Fri, 25 Jan 2013 11:32:39 +0000 Frederic Marand 296 at https://blog.riff.org