[PATCH] Make the --authors option to hgext/convert expand ~

Simon de Vlieger simon at ikanobori.jp
Wed Mar 3 06:25:08 CST 2010


# HG changeset patch
# User Simon de Vlieger <simon at ikanobori.jp>
# Date 1267619331 -3600
# Node ID 3078012f43dfcfe451933905cb5b609c6a9831ce
# Parent  d1bbf01c4a8e187345a6c3f62b3409777b1bdf38
Make the --authors option to hgext/convert expand ~

diff -r d1bbf01c4a8e -r 3078012f43df hgext/convert/convcmd.py
--- a/hgext/convert/convcmd.py	Sun Feb 28 18:06:47 2010 +0100
+++ b/hgext/convert/convcmd.py	Wed Mar 03 13:28:51 2010 +0100
@@ -94,7 +94,7 @@
             self.readauthormap(authorfile)
         # Extend/Override with new author map if necessary
         if opts.get('authors'):
-            self.readauthormap(opts.get('authors'))
+            self.readauthormap(util.expandpath(opts.get('authors')))
             self.authorfile = self.dest.authorfile()
 
         self.splicemap = mapfile(ui, opts.get('splicemap'))


More information about the Mercurial-devel mailing list