##// END OF EJS Templates
archive: add support to specify hidden revs if directaccess config is set...
Pulkit Goyal -
r35553:ffd7b7cd default
parent child Browse files
Show More
@@ -467,7 +467,10 b' def archive(ui, repo, dest, **opts):'
467 467 '''
468 468
469 469 opts = pycompat.byteskwargs(opts)
470 ctx = scmutil.revsingle(repo, opts.get('rev'))
470 rev = opts.get('rev')
471 if rev:
472 repo = scmutil.unhidehashlikerevs(repo, [rev], 'nowarn')
473 ctx = scmutil.revsingle(repo, rev)
471 474 if not ctx:
472 475 raise error.Abort(_('no working directory: please specify a revision'))
473 476 node = ctx.node()
@@ -148,6 +148,11 b' Testing with hash'
148 148 $ hg status --change 28ad74
149 149 A c
150 150
151 `hg archive`
152
153 This should not throw error
154 $ hg archive -r 28ad74 foo
155
151 156 `hg update`
152 157
153 158 $ hg up 28ad74
General Comments 0
You need to be logged in to leave comments. Login now