comparison tests/test-url-rev.t @ 30036:3f4e1c033f40

url: fix crash by empty path with #fragments Before, "#foo" paths made hg crash. We've moved the #fragment parsing at 64fbd0de9773, but we shouldn't set path to None too early. This patch just removes the "if not path:" block since that's checked a few lines later.
author Yuya Nishihara <yuya@tcha.org>
date Fri, 30 Sep 2016 21:38:47 +0900
parents 3d2ea1403c62
children 4431add9aef9
comparison
equal deleted inserted replaced
30035:02328b5d775d 30036:3f4e1c033f40
318 update: (current) 318 update: (current)
319 phases: 1 draft 319 phases: 1 draft
320 remote: 1 outgoing 320 remote: 1 outgoing
321 321
322 $ cd .. 322 $ cd ..
323
324 Test url#rev syntax of local destination path, which should be taken as
325 a 'url#rev' path
326
327 $ hg clone repo '#foo'
328 updating to branch default
329 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
330 $ hg root -R '#foo'
331 $TESTTMP/#foo (glob)