Patchwork record: update comment to match code

login
register
mail settings
Submitter Jordi Gutiérrez Hermoso
Date June 26, 2014, 3:12 p.m.
Message ID <f7c0bae00cdd00be4868.1403795525@Iris>
Download mbox | patch
Permalink /patch/5069/
State Accepted
Headers show

Comments

Jordi Gutiérrez Hermoso - June 26, 2014, 3:12 p.m.
# HG changeset patch
# User Jordi Gutiérrez Hermoso <jordigh@octave.org>
# Date 1403795428 14400
#      Thu Jun 26 11:10:28 2014 -0400
# Node ID f7c0bae00cdd00be48680b36f10f0c65f1680529
# Parent  becb61de90a1a0384af535a393fb32e7da7a9059
record: update comment to match code

Commit 205599e31870 changed how newfiles get passed to commitfunc, but
did not change the corresponding comment that explains this. This
commit also updates this comment.
Pierre-Yves David - June 26, 2014, 3:23 p.m.
On 06/26/2014 04:12 PM, Jordi Gutiérrez Hermoso wrote:
> # HG changeset patch
> # User Jordi Gutiérrez Hermoso <jordigh@octave.org>
> # Date 1403795428 14400
> #      Thu Jun 26 11:10:28 2014 -0400
> # Node ID f7c0bae00cdd00be48680b36f10f0c65f1680529
> # Parent  becb61de90a1a0384af535a393fb32e7da7a9059
> record: update comment to match code

pushed to clowncopter thanks


(queued)--
Pierre-Yves David

Patch

diff --git a/hgext/record.py b/hgext/record.py
--- a/hgext/record.py
+++ b/hgext/record.py
@@ -603,9 +603,7 @@  def dorecord(ui, repo, commitfunc, cmdsu
             #    patch. Now is the time to delegate the job to
             #    commit/qrefresh or the like!
 
-            # it is important to first chdir to repo root -- we'll call
-            # a highlevel command with list of pathnames relative to
-            # repo root
+            # Make all of the pathnames absolute.
             newfiles = [repo.wjoin(nf) for nf in newfiles]
             commitfunc(ui, repo, *newfiles, **opts)