Git::SVN: rename private path field
authorJonathan Nieder <jrnieder@gmail.com>
Mon, 17 Sep 2012 09:13:31 +0000 (02:13 -0700)
committerEric Wong <normalperson@yhbt.net>
Fri, 5 Oct 2012 22:48:12 +0000 (22:48 +0000)
All users of $gs->{path} should have been converted to use the
accessor by now.  Check our work by renaming the underlying variable
to break callers that try to use it directly.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Eric Wong <normalperson@yhbt.net>
perl/Git/SVN.pm

index 88b91640c21bea291b458ed1b4600b8b8012ce11..59215fa86e2c2902ec97b12bea70736f9c7c02c6 100644 (file)
@@ -2331,11 +2331,11 @@ sub path {
 
        if (@_) {
                my $path = shift;
-               $self->{path} = canonicalize_path($path);
+               $self->{_path} = canonicalize_path($path);
                return;
        }
 
-       return $self->{path};
+       return $self->{_path};
 }
 
 sub url {