##// END OF EJS Templates
subrepo: fix default implementation of forget() (issue3404)
Patrick Mezard -
r16527:17a1f769 stable
parent child Browse files
Show More
@@ -366,7 +366,7 b' class abstractsubrepo(object):'
366 pass
366 pass
367
367
368 def forget(self, ui, match, prefix):
368 def forget(self, ui, match, prefix):
369 return []
369 return ([], [])
370
370
371 def revert(self, ui, substate, *pats, **opts):
371 def revert(self, ui, substate, *pats, **opts):
372 ui.warn('%s: reverting %s subrepos is unsupported\n' \
372 ui.warn('%s: reverting %s subrepos is unsupported\n' \
@@ -507,3 +507,8 b' Test subrepo already at intended revisio'
507 da5f5b1d8ffcf62fb8327bcd3c89a4367a6018e7
507 da5f5b1d8ffcf62fb8327bcd3c89a4367a6018e7
508 $ cd ..
508 $ cd ..
509
509
510 Test forgetting files, not implemented in git subrepo, used to
511 traceback
512 $ hg forget 'notafile*'
513 notafile*: No such file or directory
514 [1]
@@ -548,3 +548,10 b' Test archive'
548 archiving (s): 2/2 files (100.00%)
548 archiving (s): 2/2 files (100.00%)
549 archiving (recreated): 0/1 files (0.00%)
549 archiving (recreated): 0/1 files (0.00%)
550 archiving (recreated): 1/1 files (100.00%)
550 archiving (recreated): 1/1 files (100.00%)
551
552 Test forgetting files, not implemented in svn subrepo, used to
553 traceback
554
555 $ hg forget 'notafile*'
556 notafile*: No such file or directory
557 [1]
General Comments 0
You need to be logged in to leave comments. Login now