Skip to content

Commit

Permalink
deploy: ff79dc7
Browse files Browse the repository at this point in the history
  • Loading branch information
coordt committed Nov 11, 2023
1 parent 2e18411 commit e724582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _modules/bumpversion/scm.html
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ <h1>Source code for bumpversion.scm</h1><div class="highlight"><pre>
<span class="p">)</span>
<span class="n">result</span><span class="o">.</span><span class="n">check_returncode</span><span class="p">()</span>
<span class="k">if</span> <span class="n">result</span><span class="o">.</span><span class="n">stdout</span><span class="p">:</span>
<span class="n">current_version</span> <span class="o">=</span> <span class="n">result</span><span class="o">.</span><span class="n">stdout</span><span class="o">.</span><span class="n">splitlines</span><span class="p">(</span><span class="n">keepends</span><span class="o">=</span><span class="kc">False</span><span class="p">)[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">lstrip</span><span class="p">(</span><span class="s2">&quot;v&quot;</span><span class="p">)</span>
<span class="n">current_version</span> <span class="o">=</span> <span class="n">result</span><span class="o">.</span><span class="n">stdout</span><span class="o">.</span><span class="n">splitlines</span><span class="p">(</span><span class="n">keepends</span><span class="o">=</span><span class="kc">False</span><span class="p">)[</span><span class="o">-</span><span class="mi">1</span><span class="p">]</span><span class="o">.</span><span class="n">lstrip</span><span class="p">(</span><span class="s2">&quot;v&quot;</span><span class="p">)</span>
<span class="n">is_dirty</span> <span class="o">=</span> <span class="nb">len</span><span class="p">(</span><span class="n">subprocess</span><span class="o">.</span><span class="n">check_output</span><span class="p">([</span><span class="s2">&quot;hg&quot;</span><span class="p">,</span> <span class="s2">&quot;status&quot;</span><span class="p">,</span> <span class="s2">&quot;-mard&quot;</span><span class="p">]))</span> <span class="o">!=</span> <span class="mi">0</span> <span class="c1"># noqa: S603, S607</span>
<span class="k">return</span> <span class="n">SCMInfo</span><span class="p">(</span><span class="n">tool</span><span class="o">=</span><span class="bp">cls</span><span class="p">,</span> <span class="n">current_version</span><span class="o">=</span><span class="n">current_version</span><span class="p">,</span> <span class="n">dirty</span><span class="o">=</span><span class="n">is_dirty</span><span class="p">)</span></div>

Expand Down

0 comments on commit e724582

Please sign in to comment.