<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/git.git/git-cvsimport.perl, branch v1.8.3.3</title>
<subtitle>Git
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=v1.8.3.3</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=v1.8.3.3'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/'/>
<updated>2013-02-24T21:31:07Z</updated>
<entry>
<title>git-cvsimport: use a lowercase "usage:" string</title>
<updated>2013-02-24T21:31:07Z</updated>
<author>
<name>David Aguilar</name>
<email>davvid@gmail.com</email>
</author>
<published>2013-02-24T00:50:15Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=ce7f3ca89afa7a0fc6f73db44361c8ae2dc31757'/>
<id>urn:sha1:ce7f3ca89afa7a0fc6f73db44361c8ae2dc31757</id>
<content type='text'>
Make the usage string consistent with Git.

Reviewed-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: David Aguilar &lt;davvid@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>cvsimport: format commit timestamp ourselves without using strftime</title>
<updated>2013-02-09T22:41:49Z</updated>
<author>
<name>Ben Walton</name>
<email>bdwalton@gmail.com</email>
</author>
<published>2013-02-09T21:46:58Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=48c916285753907b71a0ef663576f01ee260095c'/>
<id>urn:sha1:48c916285753907b71a0ef663576f01ee260095c</id>
<content type='text'>
Some implementations of strftime(3) lack support for "%z".  Also
there is no need for %s in git-cvsimport as the supplied time is
already in seconds since the epoch.

For %z, use the function get_tz_offset provided by Git.pm instead.

Signed-off-by: Ben Walton &lt;bdwalton@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>cvsimport: work around perl tzset issue</title>
<updated>2012-11-04T13:02:41Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2012-11-04T12:25:36Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=c2b3af0537e0b2c7624913b0f26191e992beb12c'/>
<id>urn:sha1:c2b3af0537e0b2c7624913b0f26191e992beb12c</id>
<content type='text'>
On many platforms, the first invocation of localtime_r will
check $TZ in the environment, but subsequent invocations
will use a cached value. That means that setting $ENV{TZ} in
the middle of the program may or may not have an effect on
later calls to localtime.  Perl 5.10.0 and later handles
this automatically for us, but we try to remain portable
back to 5.8. Work around it by calling tzset ourselves.
</content>
</entry>
<entry>
<title>git-cvsimport: allow author-specific timezones</title>
<updated>2012-10-17T05:23:18Z</updated>
<author>
<name>Chris Rorvick</name>
<email>chris@rorvick.com</email>
</author>
<published>2012-10-17T03:53:29Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=fb2c984148a344781833b25361154619230d9dd4'/>
<id>urn:sha1:fb2c984148a344781833b25361154619230d9dd4</id>
<content type='text'>
CVS patchsets are imported with timestamps having an offset of +0000
(UTC).  The cvs-authors file is already used to translate the CVS
username to full name and email in the corresponding commit.  Extend
this file to support an optional timezone for calculating a user-
specific timestamp offset.

Signed-off-by: Chris Rorvick &lt;chris@rorvick.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>cvsimport: strip all inappropriate tag strings</title>
<updated>2012-09-06T17:40:09Z</updated>
<author>
<name>Ken Dreyer</name>
<email>ktdreyer@ktdreyer.com</email>
</author>
<published>2012-09-06T16:36:53Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=70b67b0792375c59f60f3e24f2d6757b24dc719c'/>
<id>urn:sha1:70b67b0792375c59f60f3e24f2d6757b24dc719c</id>
<content type='text'>
Certain characters such as "?" can be present in a CVS tag name, but
git does not allow these characters in tags. If git-cvsimport
encounters a CVS tag that git cannot handle, cvsimport will error and
refuse to continue the import beyond that point.

When importing CVS tags, strip all the inappropriate strings from the
tag names as we translate them to git tag names.

Provide more debugging information to the user if we've altered the
tag and the "git tag" command still fails. Also, warn the user if we
end up skipping an (unusable) tag altogether.

Signed-off-by: Ken Dreyer &lt;ktdreyer@ktdreyer.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'gr/cvsimport-alternative-cvspass-location'</title>
<updated>2011-05-06T17:52:12Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-05-06T17:52:12Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=2da61dcf9e678f36f8287b2cacdec2ebf014ae69'/>
<id>urn:sha1:2da61dcf9e678f36f8287b2cacdec2ebf014ae69</id>
<content type='text'>
* gr/cvsimport-alternative-cvspass-location:
  Look for password in both CVS and CVSNT password files.
</content>
</entry>
<entry>
<title>Look for password in both CVS and CVSNT password files.</title>
<updated>2011-05-01T18:42:59Z</updated>
<author>
<name>Guy Rouillier</name>
<email>guyr@burntmail.com</email>
</author>
<published>2011-05-01T05:33:52Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=58fdef0cff5bcf10f2621d00466b33a5b8a39bf7'/>
<id>urn:sha1:58fdef0cff5bcf10f2621d00466b33a5b8a39bf7</id>
<content type='text'>
In conn, if password is not passed on command line, look for a password
entry in both the CVS password file and the CVSNT password file.  If only
one file is found and the requested repository is in that file, or if both
files are found but the requested repository is found in only one file, use
the password from the single file containing the repository entry.  If both
files are found and the requested repository is found in both files, then
produce an error message.

The CVS password file separates tokens with a space character, while
the CVSNT password file separates tokens with an equal (=) character.
Add a sub find_password_entry that accepts the password file name
and a delimiter to eliminate code duplication.

Signed-off-by: Guy Rouillier &lt;guyr@burntmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-cvsimport.perl: Bail out right away when reading from the server fails</title>
<updated>2011-02-27T10:13:21Z</updated>
<author>
<name>Fabian Keil</name>
<email>fk@fabiankeil.de</email>
</author>
<published>2011-01-31T19:29:46Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=e7cad3ccd05461b0defdef86c9d786ab6fb9fe40'/>
<id>urn:sha1:e7cad3ccd05461b0defdef86c9d786ab6fb9fe40</id>
<content type='text'>
If the CVS server is down, this reduced the git-cvsimport output from:

ssh: connect to host ijbswa.cvs.sourceforge.net port 22: Connection refused
Use of uninitialized value $rep in scalar chomp at /usr/local/libexec/git-core/git-cvsimport line 369.
Use of uninitialized value $rep in substitution (s///) at /usr/local/libexec/git-core/git-cvsimport line 370.
Expected Valid-requests from server, but got: &lt;unknown&gt;

to the less noisy:

ssh: connect to host ijbswa.cvs.sourceforge.net port 22: Connection refused
Failed to read from server at /usr/local/libexec/git-core/git-cvsimport line 370.

In this case a silent exit() instead of the die() would probably do,
but I assume that there could be cases where the connection attempt
succeeds, but reading from the server fails for other reasons.

Signed-off-by: Fabian Keil &lt;fk@fabiankeil.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'mg/cvsimport'</title>
<updated>2011-01-05T21:30:29Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-01-05T21:30:29Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=0c30ed0cb57988378d721d817c55f74a93dffb13'/>
<id>urn:sha1:0c30ed0cb57988378d721d817c55f74a93dffb13</id>
<content type='text'>
* mg/cvsimport:
  cvsimport: handle the parsing of uppercase config options
  cvsimport: partial whitespace cleanup
</content>
</entry>
<entry>
<title>cvsimport: handle the parsing of uppercase config options</title>
<updated>2011-01-04T21:31:03Z</updated>
<author>
<name>Michael J Gruber</name>
<email>git@drmicha.warpmail.net</email>
</author>
<published>2010-12-29T21:55:34Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=60d5985dab5d3c5a283f060414b903778adfd09a'/>
<id>urn:sha1:60d5985dab5d3c5a283f060414b903778adfd09a</id>
<content type='text'>
The current code leads to

  fatal: bad config value for 'cvsimport.r' in .git/config

for a standard use case with cvsimport.r set.

cvsimport sets internal variables by checking the config for each
possible command line option. The problem is that config items are case
insensitive, so config.r and config.R are the same. The ugly error is
due to that fact that cvsimport expects a bool for -R (and thus
config.R) but a remote name for -r (and thus config.r).

Fix this by making cvsimport expect long names for uppercase options.

config options for cvsimport have been undocumented so far, though
present in the code and advertised in several tutorials. So one may read
"enhance" for "fix". Similarly, the names for the options are
"documented" in the code, waitiing for their lowercase equivalents to be
transformed into long config options, as well.

Helped-by: Junio C Hamano &lt;gitster@pobox.com&gt;
Signed-off-by: Michael J Gruber &lt;git@drmicha.warpmail.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
