[issue2154] Repository not found error when bundle file name contains a hash symbol (#).

Mark Booth bugs at mercurial.selenic.com
Fri Apr 23 21:59:22 UTC 2010


New submission from Mark Booth <mercurial.selenic.com at anang.com>:

I've just had an odd problem where a bundle I'd been sent couldn't be pulled
in to the repository without being renamed.

Doing an Incoming or Pull (TortioseHg) resulted in "Repository X\Y not found
[command interrupted]", where X was the repository (C:\Src\Blah) and Y was
the first part of the bundle name, which was "Y#2Z.hg".

As soon as I renamed the bundle to be "Y-2Z.hg", everything worked fine, so
this does have a work around.

After reporting this to the thg issues list, sborho asked me to test with
the command line. I created the following batch script to demonstrate the
problem:

hg --version
md test
hg init test
cd test
echo 1 > 1.txt
hg add
hg commit -m "First"
hg clone . ..\clone
echo 1 >> 1.txt
hg commit -m "Second"
hg bundle -a ..\test#bundle.hg
cd ..\clone
hg in ..\test#bundle.hg
rename ..\test#bundle.hg testbundle.hg
hg in ..\testbundle.hg

Here are the results from my system:

C:\Temp>hg --version
Mercurial Distributed SCM (version 1.5.1)

Copyright (C) 2005-2010 Matt Mackall <mpm at selenic.com> and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

C:\Temp>md test

C:\Temp>hg init test

C:\Temp>cd test

C:\Temp\test>echo 1 > 1.txt

C:\Temp\test>hg add
adding 1.txt

C:\Temp\test>hg commit -m "First"

C:\Temp\test>hg clone . ..\clone
updating to branch default
1 files updated, 0 files merged, 0 files removed, 0 files unresolved

C:\Temp\test>echo 1 >> 1.txt

C:\Temp\test>hg commit -m "Second"

C:\Temp\test>hg bundle -a ..\test#bundle.hg
2 changesets found

C:\Temp\test>cd ..\clone

C:\Temp\clone>hg in ..\test#bundle.hg
comparing with ..\test
abort: unknown revision 'bundle.hg'!

C:\Temp\clone>rename ..\test#bundle.hg testbundle.hg

C:\Temp\clone>hg in ..\testbundle.hg
comparing with ..\testbundle.hg
searching for changes
changeset:   1:121e3be019eb
tag:         tip
user:        Mark Booth
date:        Fri Apr 23 22:56:34 2010 +0100
summary:     Second


C:\Temp\clone>

----------
messages: 12358
nosy: markbanang
priority: bug
status: unread
title: Repository not found error when bundle file name contains a hash symbol (#).

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2154>
____________________________________________________


More information about the Mercurial-devel mailing list